Skip to content

Textual Inversion error (TestTubeLogger) #1168

@wasyleque

Description

@wasyleque

Linux. GTX1080Ti 11GB, everything else working, but after command

python3 ./main.py -t --base ./configs/stable-diffusion/v2-finetune.yaml --actual_resume ./models/ldm/stable-diffusion-v1/model.ckpt -n ewa_tmp --gpus 0 --data_root ./ewa_tmp/ --init_word 'ewunia'

i got this error:

Restored from ./models/ldm/stable-diffusion-v1/model.ckpt with 0 missing and 2 unexpected keys
Unexpected Keys: ['model_ema.decay', 'model_ema.num_updates']
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ /home/piotr/Documents/InvokeAI/./main.py:784 in │
│ │
│ 781 │ │ else: │
│ 782 │ │ │ logger_cfg = OmegaConf.create() │
│ 783 │ │ logger_cfg = OmegaConf.merge(default_logger_cfg, logger_cfg) │
│ ❱ 784 │ │ trainer_kwargs['logger'] = instantiate_from_config(logger_cfg) │
│ 785 │ │ │
│ 786 │ │ # modelcheckpoint - use TrainResult/EvalResult(checkpoint_on=metric) to │
│ 787 │ │ # specify which metric is used to determine best models │
│ │
│ /home/piotr/Documents/InvokeAI/ldm/util.py:90 in instantiate_from_config │
│ │
│ 87 │ │ elif config == 'is_unconditional': │
│ 88 │ │ │ return None │
│ 89 │ │ raise KeyError('Expected key target to instantiate.') │
│ ❱ 90 │ return get_obj_from_str(config['target'])( │
│ 91 │ │ **config.get('params', dict()), **kwargs │
│ 92 │ ) │
│ 93 │
│ │
│ /home/piotr/Documents/InvokeAI/ldm/util.py:100 in get_obj_from_str │
│ │
│ 97 │ if reload: │
│ 98 │ │ module_imp = importlib.import_module(module) │
│ 99 │ │ importlib.reload(module_imp) │
│ ❱ 100 │ return getattr(importlib.import_module(module, package=None), cls) │
│ 101 │
│ 102 │
│ 103 def _do_parallel_data_prefetch(func, Q, data, idx, idx_to_fn=False): │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
AttributeError: module 'pytorch_lightning.loggers' has no attribute 'TestTubeLogger'

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions