MichalGeyer / plug-and-play

Official Pytorch Implementation for “Plug-and-Play Diffusion Features for Text-Driven Image-to-Image Translation” (CVPR 2023)
939 stars 58 forks source link

How can I link sd-v1-4.ckpt file on windows 11? #22

Closed Jziumo closed 7 months ago

Jziumo commented 1 year ago

I download sd-v1-4.ckpt file on hugging face and put it in models/ldm/stable-diffusion-v1. Then I don't know how to link the file because ln -s cmd cannot be identified in Windows cmd. Instead, I run command:

mklink "models/ldm/stable-diffusion-v1/" "models/ldm/stable-diffusion-v1/model.ckpt"

Then it reports Access Denied. I am not sure if my operation is correct.

Jziumo commented 7 months ago

I have solved it. I wrote a wrong Windows command as mentioned above. The correct one is as follows:

mklink /D model.ckpt models\ldm\stable-diffusion-v1\model.ckpt

Be sure to put the model.ckpt file under the relative directory models/ldm/stable-diffusion-v1 before running the command. And then a soft link file will appear in the root directory.