Skip to content

Report of some bugs that have had dealt with it or could not deal with. #1

@NaughtDZ

Description

@NaughtDZ

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions