You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have trained a model with
python main.py --base /path/textual_inversion/configs/latent-diffusion/txt2img-1p4B-finetune.yaml -t --actual_resume /path/textual_inversion/models/ldm/text2img-large/model.ckpt -n project_v1 --gpus 0, --data_root /path/inputs/
and test with:
python scripts/txt2img.py --ddim_eta 0.0 --n_samples 8 --n_iter 2 --scale 10.0 --ddim_steps 50 --embedding_path /path/checkpoints/embeddings_gs-5999.pt --ckpt_path /path/textual_inversion/models/ldm/text2img-large/model.ckpt --prompt "a photo of *"
but I get an error as:
Loading model from /path/textual_inversion/models/ldm/text2img-large/model.ckpt
LatentDiffusion: Running in eps-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
Traceback (most recent call last):
File "scripts/txt2img.py", line 132, in
model.embedding_manager.load(opt.embedding_path)
AttributeError: 'NoneType' object has no attribute 'load'
it seems like no embedding_manager in my model, how can I fix it?
The text was updated successfully, but these errors were encountered:
I have trained a model with
python main.py --base /path/textual_inversion/configs/latent-diffusion/txt2img-1p4B-finetune.yaml -t --actual_resume /path/textual_inversion/models/ldm/text2img-large/model.ckpt -n project_v1 --gpus 0, --data_root /path/inputs/
and test with:
python scripts/txt2img.py --ddim_eta 0.0 --n_samples 8 --n_iter 2 --scale 10.0 --ddim_steps 50 --embedding_path /path/checkpoints/embeddings_gs-5999.pt --ckpt_path /path/textual_inversion/models/ldm/text2img-large/model.ckpt --prompt "a photo of *"
but I get an error as:
Loading model from /path/textual_inversion/models/ldm/text2img-large/model.ckpt
LatentDiffusion: Running in eps-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
Traceback (most recent call last):
File "scripts/txt2img.py", line 132, in
model.embedding_manager.load(opt.embedding_path)
AttributeError: 'NoneType' object has no attribute 'load'
it seems like no embedding_manager in my model, how can I fix it?
The text was updated successfully, but these errors were encountered: