Open zengbohan0217 opened 3 weeks ago
Hi,
Do you have enough space in the directory .threestudio_cache left? Was there any error before that? Usually it should have failed before that in this error is just a consequence of the text embedding file not being found. Can you show the full log after running?
I met this problem too, and this comes from threestudio/models/prompt_processors/base.py
if len(prompts_to_process) > 0: if self.cfg.spawn: ctx = mp.get_context("spawn") subprocess = ctx.Process( target=self.spawn_func, args=( self.cfg.pretrained_model_name_or_path, prompts_to_process, self._cache_dir, self.cfg, ), ) subprocess.start() subprocess.join()
but in torch.multiprocessing, this only takes 3 positional arguments, delete self.cfg
in args
Process SpawnProcess-1: Traceback (most recent call last): File "/tiamat-vePFS/share_data/minyue/miniconda3/envs/4dfy/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap self.run() File "/tiamat-vePFS/share_data/minyue/miniconda3/envs/4dfy/lib/python3.10/multiprocessing/process.py", line 108, in run self._target(*self._args, *self._kwargs) TypeError: StableDiffusionPromptProcessor.spawn_func() takes 3 positional arguments but 4 were given Traceback (most recent call last): File "/tiamat-vePFS/share_data/zengbohan/4D_search/4dfy-main/launch.py", line 178, in
main()
File "/tiamat-vePFS/share_data/zengbohan/4D_search/4dfy-main/launch.py", line 107, in main
system: BaseSystem = threestudio.find(cfg.system_type)(
File "/tiamat-vePFS/share_data/zengbohan/4D_search/4dfy-main/threestudio/systems/base.py", line 40, in init
self.configure()
File "/tiamat-vePFS/share_data/zengbohan/4D_search/4dfy-main/threestudio/systems/fourdfy.py", line 41, in configure
self.prompt_processor_multi_view = threestudio.find(self.cfg.prompt_processor_type_multi_view)(
File "/tiamat-vePFS/share_data/zengbohan/4D_search/4dfy-main/threestudio/utils/base.py", line 63, in init
self.configure( args, **kwargs)
File "/tiamat-vePFS/share_data/zengbohan/4D_search/4dfy-main/threestudio/models/prompt_processors/base.py", line 191, in configure
self.load_text_embeddings()
File "/tiamat-vePFS/share_data/zengbohan/4D_search/4dfy-main/threestudio/models/prompt_processors/base.py", line 249, in load_text_embeddings
self.text_embeddings = self.load_from_cache(self.prompt)[None, ...]
File "/tiamat-vePFS/share_data/zengbohan/4D_search/4dfy-main/threestudio/models/prompt_processors/base.py", line 267, in load_from_cache
raise FileNotFoundError(
FileNotFoundError: Text embedding file .threestudio_cache/text_embeddings/c99df661fbb1a4d3ff4ef8dff7508dea.pt for model stabilityai/stable-diffusion-2-1-base and prompt [a panda dancing] not found.
I meet this problem and I do not figure out the reason.