latent-diffusion icon indicating copy to clipboard operation
latent-diffusion copied to clipboard

No such file or directory: 'configs/first_stage_models/vq-f4/model.yaml'

Open canqin001 opened this issue 2 years ago • 7 comments

Hi,

When I am trying to train a LDM model as "CUDA_VISIBLE_DEVICES=1 python main.py --base configs/latent-diffusion/lsun_bedrooms-ldm-vq-4.yaml -t --gpus 0", there is an error massage as "No such file or directory: 'configs/first_stage_models/vq-f4/model.yaml'".

Does anyone know how to address it?

Thanks,

canqin001 avatar Jun 16 '22 04:06 canqin001

I am running into to same issues

GaParmar avatar Jul 07 '22 03:07 GaParmar

I changed the value of ckpt_path to be "models/first_stage_models/vq-f4/model.ckpt". But.. if I run training, a message "Restored from models/first_stage_models/vq-f4/model.ckpt with 0 missing and 55 unexpected keys" is printed out. No idea yet what 55 unexpected keys are.

-- The 55 unexpected keys are from loss.perceptual_loss and loss.discriminator.

WonwoongCho avatar Jul 08 '22 03:07 WonwoongCho

I also have the same issue here. If there are someone who solved this problem, please let me know.

Junoh-Kang avatar Nov 10 '22 08:11 Junoh-Kang

bash scripts/download_first_stages.sh Download ckpt first as described in README.

LSC527 avatar Dec 20 '22 09:12 LSC527

I have the same issue about unexpected keys. Do you know how to solve this issue?

g-jing avatar Jan 09 '23 20:01 g-jing

I solved this issue by revising the ckpt_path as models/first_stage_models/vq-f4/model.ckpt in configs/latent-diffusion/lsun_bedrooms-ldm-vq-4.yaml.

First, you should make sure you have downloaded the ckpt files by running:

bash scripts/download_first_stages.sh

Then, you could find the ckpt file in models/first_stage_models/vq-f4.

TianBian95 avatar Feb 02 '23 10:02 TianBian95

i am experiencing the same problem. everyone mentioned about how to get .ckpt but we did not fine yaml file corresponding

leibohan avatar Jan 26 '24 15:01 leibohan