volotat / SD-CN-Animation

This script allows to automate video stylization task using StableDiffusion and ControlNet.
MIT License
806 stars 61 forks source link

No such file or directory: C:\Users\<name>\.cache\torch\hub\checkpoints\models\FloweR\... #195

Open JohnnyStreet opened 1 year ago

JohnnyStreet commented 1 year ago

When I try to use txt2vid I get the following error:

An exception occurred while trying to process the frame: [Errno 2] No such file or directory: 'C:\Users\\.cache\torch\hub\checkpoints\models\FloweR\tmpb9w8x1ho'

SD.Next Windows 11 RTX3060

JohnnyStreet commented 1 year ago

Sorry if this is a dupe of #192 but I don't see an answer.

K1lly76 commented 3 months ago

Hello,

I figured out how to solve the problem. First you need to go to C:\Users\NAMEOFYOURUSER.cache\torch\hub and you need to make sure that there is the "checkpoints" folder in hub, then the "models" folder in the checkpoints folder and the "FloweR" folder in the "models" folder. Once this is done you go to your "Stable Diffusion" folder then in "extensions", "SD-CN-Animation", "scripts", "core" and then you open the file "txt2vid.py"

Line 33 you will find: image You need to modify "ph.models_path + '/FloweR/FloweR_0.1.2.pth'" by image

Normally after that it should work I hope I will help you. Goodbye

(Sorry for my english, im french ahah)