Text-to-3D
3d

extracting mesh

#5
by MultiTrickFox - opened

I have successfully ran the provided code, but did get stuck at mesh extraction stage.

Following the mesh extraction code of threestudio;
!python launch.py --config configs/stable-zero123.yaml --export --gpu 0 resume=$save_dir/ckpts/last.ckpt system.exporter_type=mesh-exporter system.exporter.context_type=cuda system.geometry.isosurface_threshold=15.0

I'm getting the error;

Traceback (most recent call last):
  File "/content/threestudio/launch.py", line 301, in <module>
    main(args, extras)
  File "/content/threestudio/launch.py", line 163, in main
    cfg = load_config(args.config, cli_args=extras, n_gpus=n_gpus)
  File "/content/threestudio/threestudio/utils/config.py", line 113, in load_config
    scfg = parse_structured(ExperimentConfig, cfg)
  File "/content/threestudio/threestudio/utils/config.py", line 127, in parse_structured
    scfg = OmegaConf.structured(fields(**cfg))
TypeError: ExperimentConfig.__init__() got an unexpected keyword argument '128,'

I'm using the "anya_front.png" example from threestudio itself. My save dir is: "threestudio/outputs/zero123-sai/[64, 128, 256]_anya_front.png@20231215-065504"

IMG_20231215_203927.jpg

i met this problem too. it is caused by wrong directory name. i resolved it by changing the name([64, 128, 256]_xxx to xxx) and then successfully export mesh files. but i think that it is not the best way, maybe you could change the options of yaml file to set the output directory name . or make the directory name correctly recognized

Sign up or log in to comment