mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-02 13:59:10 +08:00
commands
This commit is contained in:
1 parent
c24ecf5d2a
commit
55f334d33b
1 file changed
+11
@@ -55,6 +55,8 @@ for split, gpu in zip(splits, gpus):
|
|||||||
commands.append(command)
|
commands.append(command)
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
||||||
def f(cmd):
|
def f(cmd):
|
||||||
out = subprocess.run(cmd, capture_output=False, shell=True, check=False)
|
out = subprocess.run(cmd, capture_output=False, shell=True, check=False)
|
||||||
if out.returncode != 0:
|
if out.returncode != 0:
|
||||||
@@ -63,9 +65,18 @@ def f(cmd):
|
|||||||
if out.stdout is not None:
|
if out.stdout is not None:
|
||||||
return out.stdout.decode("utf-8")
|
return out.stdout.decode("utf-8")
|
||||||
|
|
||||||
|
|
||||||
from multiprocessing import Pool
|
from multiprocessing import Pool
|
||||||
|
|
||||||
with Pool() as p:
|
with Pool() as p:
|
||||||
print(p.map(f, commands))
|
print(p.map(f, commands))
|
||||||
|
|
||||||
|
|
||||||
# evaluation...
|
# evaluation...
|
||||||
|
|
||||||
|
#
|
||||||
|
|
||||||
|
# the default method
|
||||||
|
# DATASET="person" METHOD="nerfacto-default" && ns-train nerfacto --vis wandb --data "data/nerfstudio/${DATASET}" --wandb-name "${METHOD}-${DATASET}" --experiment-name "${METHOD}-${DATASET}"
|
||||||
|
# without pose optimization
|
||||||
|
# DATASET="person" METHOD="nerfacto-no-pose" && ns-train nerfacto --vis wandb --data "data/nerfstudio/${DATASET}" --wandb-name "${METHOD}-${DATASET}" --experiment-name "${METHOD}-${DATASET}" --pipeline.datamanager.camera-optimizer.mode off
|
||||||
Reference in new issue
Block a user