Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

换sdxl又要下10多g的文件,C盘空间不够了,有没有什么方法能不往C盘下啊? #59

Open
huanxve opened this issue May 8, 2024 · 9 comments

Comments

@huanxve
Copy link

huanxve commented May 8, 2024

换sdxl又要下10多g的文件,C盘空间不够了,有没有什么方法能不往C盘下啊?

@huanxve
Copy link
Author

huanxve commented May 8, 2024

if os.path.exists(sd_model_path): pipe = StableDiffusionXLPipeline.from_single_file(sd_model_path, torch_dtype=torch.float16, use_safetensors=False)

请问修改哪个文件?

@Z-YuPeng
Copy link
Collaborator

Z-YuPeng commented May 8, 2024

@huanxve 等会更新一版代码,可以把路径写在config里面

@huanxve
Copy link
Author

huanxve commented May 8, 2024

@huanxve 等会更新一版代码,可以把路径写在config里面

太感谢了

@Z-YuPeng
Copy link
Collaborator

Z-YuPeng commented May 8, 2024

请git pull 一下,代码已经更新了

@huanxve
Copy link
Author

huanxve commented May 9, 2024

请git pull 一下,代码已经更新了

已经更新了,请问现在更新的模型是下在哪个目录里?之前旧版下的在.cache中的模型是否可以删除或者移到别的盘里?

@Z-YuPeng
Copy link
Collaborator

Z-YuPeng commented May 9, 2024

下载还是默认路径,你可以移动到别的盘,然后在config里面修改位置,
huggface 的cache 的位置是可以改的: https://blog.csdn.net/micah_yaokunkun/article/details/134002557

@yl17104265
Copy link

可以设置一个默认的cache路径

@shenhongdeng
Copy link

download_hub()里边指定cache_dir到指定的路径就行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@Z-YuPeng @yl17104265 @shenhongdeng @huanxve and others