Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'main' has no attribute 'LearningRateMonitor' #163

Open
xukun12138 opened this issue Dec 17, 2023 · 0 comments
Open

Comments

@xukun12138
Copy link

Loading model from {ckpt}
{self.class.name}: Running in {self.parameterization}-prediction mode
DiffusionWrapper has 872.30 M params.
making attention of type 'vanilla' with 512 in_channels
Working with z of shape (1, 4, 32, 32) = 4096 dimensions.
making attention of type 'vanilla' with 512 in_channels
Restored from {path} with {len(missing)} missing and {len(unexpected)} unexpected keys
Monitoring {model.monitor} as checkpoint metric.
Merged modelckpt-cfg:
{modelckpt_cfg}
Traceback (most recent call last):
File "/media/server1/HDD1/textual-inversion/main.py", line 750, in
trainer_kwargs["callbacks"] = [instantiate_from_config(callbacks_cfg[k]) for k in callbacks_cfg]
File "/media/server1/HDD1/textual-inversion/main.py", line 750, in
trainer_kwargs["callbacks"] = [instantiate_from_config(callbacks_cfg[k]) for k in callbacks_cfg]
File "/media/server1/HDD1/textual-inversion/ldm/util.py", line 85, in instantiate_from_config
return get_obj_from_str(config["target"])(**config.get("params", dict()), **kwargs)
File "/media/server1/HDD1/textual-inversion/ldm/util.py", line 93, in get_obj_from_str
return getattr(importlib.import_module(module, package=None), cls)
AttributeError: module 'main' has no attribute 'LearningRateMonitor'

I had a problem reproducing TI's code according to the readme, and I couldn't solve it. I tried generating my own embedding with --base configs/latent-diffusion/txt2img-1p4B-finetune.yaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant