source: GTP/trunk/Lib/Vis/Preprocessing/scripts/generate_viewcells.sh @ 2540

Revision 2540, 1.3 KB checked in by mattausch, 17 years ago (diff)
  • Property svn:executable set to *
Line 
1#!/bin/sh
2
3# add bin to path
4export PATH=../bin:$PATH
5
6#TARGET=debug
7TARGET=release
8
9PROGRAM=../bin/$TARGET/Preprocessor.exe
10
11
12EXT=obj
13
14SCENE=vienna_cropped
15SCENE_PATH=../data/vienna
16
17#SCENE=arena-high-lods
18#SCENE_PATH=../data/Arena
19
20
21ENVIRONMENT=generate_viewcells.env
22LOG_PREFIX=$SCENE
23
24echo "starting $TARGET mode for $SCENE scene ($PROGRAM)"
25
26SCENE_FILENAME=$SCENE_PATH/$SCENE.$EXT
27
28
29#######################################################
30
31METHOD=seq
32
33NODES=4000
34VIEWCELLS=4000
35USE_HEUR=false
36OBJ_WEIGHT=20
37SAMPLES=1000000
38 
39echo "$SCENE $METHOD"
40$PROGRAM $ENVIRONMENT \
41 -scene_filename=$SCENE_FILENAME \
42 -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \
43 -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \
44 -view_cells_filename=$LOG_PREFIX-$METHOD-viewcells.xml.gz \
45 -vsp_subdivision_stats=$LOG_PREFIX-$METHOD-vsp-subdivisionStats.log \
46 -bvh_subdivision_stats=$LOG_PREFIX-$METHOD-bvh-subdivisionStats.log \
47 -hierarchy_subdivision_stats=$LOG_PREFIX-$METHOD-hierarchy-subdivisionStats.log \
48 -hierarchy_construction_type=0 \
49 -view_cells_triangle_weight=1.0 \
50 -view_cells_object_weight=$OBJ_WEIGHT \
51 -vsp_use_cost_heuristics=$USE_HEUR \
52 -bvh_term_max_leaves=$NODES \
53 -vsp_term_max_view_cells=$VIEWCELLS \
54 -hierarchy_construction_samples=$SAMPLES
55
56sh movefiles.sh $LOG_PREFIX-$METHOD
57
Note: See TracBrowser for help on using the repository browser.