sherwinbahmani / 4dfy

4D-fy: Text-to-4D Generation Using Hybrid Score Distillation Sampling
https://sherwinbahmani.github.io/4dfy/
Apache License 2.0
309 stars 8 forks source link

FileNotFoundError: Text embedding file #14

Closed JAMESYJL closed 2 weeks ago

JAMESYJL commented 2 weeks ago

Process SpawnProcess-1: Traceback (most recent call last): File "/pfs/mt-1oY5F7/yejunliang/miniconda3/envs/4dfy/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap self.run() File "/pfs/mt-1oY5F7/yejunliang/miniconda3/envs/4dfy/lib/python3.9/multiprocessing/process.py", line 108, in run self._target(*self._args, self._kwargs) _TypeError: spawnfunc() takes 3 positional arguments but 4 were given* Traceback (most recent call last): File "/pfs/mt-1oY5F7/yejunliang/workcode/4dfy/launch.py", line 178, in main() File "/pfs/mt-1oY5F7/yejunliang/workcode/4dfy/launch.py", line 107, in main system: BaseSystem = threestudio.find(cfg.system_type)( File "/pfs/mt-1oY5F7/yejunliang/workcode/4dfy/threestudio/systems/base.py", line 40, in init self.configure() File "/pfs/mt-1oY5F7/yejunliang/workcode/4dfy/threestudio/systems/fourdfy.py", line 41, in configure self.prompt_processor_multi_view = threestudio.find(self.cfg.prompt_processor_type_multi_view)( File "/pfs/mt-1oY5F7/yejunliang/workcode/4dfy/threestudio/utils/base.py", line 63, in init self.configure(args, kwargs) File "/pfs/mt-1oY5F7/yejunliang/workcode/4dfy/threestudio/models/prompt_processors/base.py", line 191, in configure self.load_text_embeddings() File "/pfs/mt-1oY5F7/yejunliang/workcode/4dfy/threestudio/models/prompt_processors/base.py", line 249, in load_text_embeddings self.text_embeddings = self.load_from_cache(self.prompt)[None, ...] File "/pfs/mt-1oY5F7/yejunliang/workcode/4dfy/threestudio/models/prompt_processors/base.py", line 267, in load_from_cache raise FileNotFoundError( _FileNotFoundError: Text embedding file .threestudio_cache/text_embeddings/8a4b054155b73362b585ebabefb002f0.pt for model stabilityai/stable-diffusion-2-1-base and prompt [a_pandadancing] not found.**

I meet this problem and I do not figure out the reason.

JAMESYJL commented 2 weeks ago

I got it. I changed subprocess = ctx.Process(...” in threestudio/models/prompt_processors/base.py, and it worked.