mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-02 05:48:57 +08:00
added method to argument list
This commit is contained in:
1 parent
b7020873f7
commit
a782306c6b
1 file changed
+5
-1
@@ -1,5 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
METHOD=$1
|
||||||
|
shift
|
||||||
|
|
||||||
# Deal with gpu's. If passed in, use those.
|
# Deal with gpu's. If passed in, use those.
|
||||||
GPU_IDX=("$@")
|
GPU_IDX=("$@")
|
||||||
if [ -z "$GPU_IDX" ]; then
|
if [ -z "$GPU_IDX" ]; then
|
||||||
@@ -35,6 +38,7 @@ for dataset in ${DATASETS[@]}; do
|
|||||||
((idx=idx+1))
|
((idx=idx+1))
|
||||||
fi
|
fi
|
||||||
python scripts/run_train.py \
|
python scripts/run_train.py \
|
||||||
|
--config-name ${METHOD} \
|
||||||
'~logging.writer.LocalWriter' \
|
'~logging.writer.LocalWriter' \
|
||||||
data.dataset.data_directory=data/blender/${dataset} \
|
data.dataset.data_directory=data/blender/${dataset} \
|
||||||
data.dataset.downscale_factor=1 \
|
data.dataset.downscale_factor=1 \
|
||||||
@@ -43,5 +47,5 @@ for dataset in ${DATASETS[@]}; do
|
|||||||
graph.steps_per_save=25000 \
|
graph.steps_per_save=25000 \
|
||||||
graph.max_num_iterations=2000000 \
|
graph.max_num_iterations=2000000 \
|
||||||
logging.enable_profiler=False &
|
logging.enable_profiler=False &
|
||||||
echo "Launched ${dataset} on gpu ${GPU_IDX[$idx]}, ${tag}"
|
echo "Launched ${METHOD} ${dataset} on gpu ${GPU_IDX[$idx]}, ${tag}"
|
||||||
done
|
done
|
||||||
Reference in new issue
Block a user