StoryDiffusion icon indicating copy to clipboard operation
StoryDiffusion copied to clipboard

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

Open huanxve opened this issue 9 months ago • 9 comments

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

huanxve avatar May 08 '24 12:05 huanxve

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

请问修改哪个文件?

huanxve avatar May 08 '24 14:05 huanxve

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

Z-YuPeng avatar May 08 '24 14:05 Z-YuPeng

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

太感谢了

huanxve avatar May 08 '24 15:05 huanxve

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

Z-YuPeng avatar May 08 '24 16:05 Z-YuPeng

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

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

huanxve avatar May 09 '24 02:05 huanxve

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

Z-YuPeng avatar May 09 '24 03:05 Z-YuPeng

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

yl17104265 avatar May 09 '24 13:05 yl17104265

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

shenhongdeng avatar May 15 '24 16:05 shenhongdeng