forked from XavierXiao/Dreambooth-Stable-Diffusion
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
File "J:\Dreambooth-Stable-Diffusion-cpu\main.py", line 18, in
from pytorch_lightning.utilities.distributed import rank_zero_only
ImportError: cannot import name 'rank_zero_only' from 'pytorch_lightning.utilities.distributed'
According to "AUTOMATIC1111/stable-diffusion-webui#4111"
The function was moved to a new script with a different name . Try to import it as :
from pytorch_lightning.utilities.rank_zero import rank_zero_only
And
File "J:\Dreambooth-Stable-Diffusion-cpu\ldm\models\diffusion\ddpm.py", line 21, in
Has same issue.
Traceback (most recent call last):
File "J:\Dreambooth-Stable-Diffusion-cpu\main.py", line 851, in
if trainer.global_rank == 0:
NameError: name 'trainer' is not defined. Did you mean: 'Trainer'?
I just change trainer to Traniner,and program can running,but dont know if have other issues.
Traceback (most recent call last):
File "J:\Dreambooth-Stable-Diffusion-cpu\main.py", line 670, in
trainer_kwargs["logger"] = instantiate_from_config(logger_cfg)
File "J:\Dreambooth-Stable-Diffusion-cpu\ldm\util.py", line 85, in instantiate_from_config
return get_obj_from_str(config["target"])(**config.get("params", dict()), **kwargs)
File "J:\Dreambooth-Stable-Diffusion-cpu\ldm\util.py", line 93, in get_obj_from_str
return getattr(importlib.import_module(module, package=None), cls)
AttributeError: module 'pytorch_lightning.loggers' has no attribute 'TestTubeLogger'. Did you mean: 'NeptuneLogger'?
thx:78Alpha
Replace all instances of TestTubeLogger with CSVLogger
Metadata
Metadata
Assignees
Labels
No labels