Moore-AnimateAnyone icon indicating copy to clipboard operation
Moore-AnimateAnyone copied to clipboard

I get this error, but all files are fine and also the config.json

Open gunjahman opened this issue 1 year ago • 8 comments

We couldn't connect to 'https://huggingface.co' to load this model, couldn't find it in the cached files and it looks like ./pretrained_weights/sd-vae-ft-mse is not the path to a directory containing a config.json file. Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/diffusers/installation#offline-mode

gunjahman avatar Jan 12 '24 17:01 gunjahman

Hello @gunjahman , have you install complete files of sd-vae-ft-mse? The issue is likely caused by missing the file path, so I suggest you check the path and its configuration in the config file.

lixunsong avatar Jan 13 '24 04:01 lixunsong

Thank you for your answer.

I have checked the path in the config file (configs/prompts/animation.yaml) and it is correct (pretrained_vae_path: "./pretrained_weights/sd-vae-ft-mse") I have in the root a folder named: .pretrained_weights and in there a folder named: sd-vae-ft-mse and in there there are three files: config.json, diffusion_pytorch_model.bin, diffusion_pytorch_model.safetensors.

But I'm getting that error.

Any ideas?

gunjahman avatar Jan 13 '24 07:01 gunjahman

the folder name in the root may be pretrained_weights/ instead of .pretrained_weights. Is it right?

lixunsong avatar Jan 13 '24 08:01 lixunsong

Good idea. I tried it and now I get a different error: raise AssertionError("Torch not compiled with CUDA enabled") AssertionError: Torch not compiled with CUDA enabled

gunjahman avatar Jan 13 '24 08:01 gunjahman

This seems you don't install torch with a cuda version. You can first check whether the cuda is enabled by this:

import torch
print(torch.cuda.is_available())

If output is False, you could reinstall torch.

lixunsong avatar Jan 13 '24 09:01 lixunsong

Sorry, I'm a newbie. Where do I write: import torch print(torch.cuda.is_available())

gunjahman avatar Jan 13 '24 09:01 gunjahman

you can create a new .py file within the folder and run it

nihilisticneuralnet avatar Jan 13 '24 10:01 nihilisticneuralnet

Thank you. I did it, and you were right, I get FALSE

python check.py False

What should I do?

gunjahman avatar Jan 13 '24 10:01 gunjahman

@gunjahman https://pytorch.org/

Reinstall torch 2.0.1 using the instructions.

Make sure to uninstall torch first by running pip uninstall torch torchaudio torchvision

PladsElsker avatar Jan 15 '24 04:01 PladsElsker