WU-CVGL / MVControl

[3DV-2025] Official implementation of "Controllable Text-to-3D Generation via Surface-Aligned Gaussian Splatting"
https://lizhiqi49.github.io/MVControl/
MIT License
191 stars 6 forks source link

Request for Assistance: ModuleNotFoundError in Running Python Script #6

Open yuchenlichuck opened 6 months ago

yuchenlichuck commented 6 months ago

Hi, there is a problem on running the code:

python app_stage1.py big --resume pretrained/model_fp16.safetensors --condition_type $condition_type
/home/dubaiprince/Projects/MVControl-threestudio/extern/lgm/attention.py:22: UserWarning: xFormers is available (Attention)
  warnings.warn("xFormers is available (Attention)")
[INFO] Loaded checkpoint from pretrained/model_fp16.safetensors
unet/diffusion_pytorch_model.safetensors not found
Loading pipeline components...:  17%|██          | 1/6 [00:00<00:00, 125.69it/s]
Traceback (most recent call last):
  File "/home/dubaiprince/Projects/MVControl-threestudio/app_stage1.py", line 63, in <module>
    pipe_mvcontrol = load_mvcontrol_pipeline(
  File "/home/dubaiprince/Projects/MVControl-threestudio/extern/mvcontrol/pipeline_mvcontrol.py", line 966, in load_mvcontrol_pipeline
    pipe = MVControlPipeline.from_pretrained(
  File "/home/dubaiprince/miniconda3/envs/threestudio/lib/python3.9/site-packages/diffusers/pipelines/pipeline_utils.py", line 1093, in from_pretrained
    loaded_sub_model = load_sub_model(
  File "/home/dubaiprince/miniconda3/envs/threestudio/lib/python3.9/site-packages/diffusers/pipelines/pipeline_utils.py", line 386, in load_sub_model
    class_obj, class_candidates = get_class_obj_and_candidates(
  File "/home/dubaiprince/miniconda3/envs/threestudio/lib/python3.9/site-packages/diffusers/pipelines/pipeline_utils.py", line 317, in get_class_obj_and_candidates
    library = importlib.import_module(library_name)
  File "/home/dubaiprince/miniconda3/envs/threestudio/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'camera_proj'

Can you suggest anyway to fix it?