cronrpc / SubFix

SubFix: Efficient Web-Based Audio Subtitle Editing and Multilingual Automatic Annotation Tool.
Apache License 2.0
193 stars 21 forks source link

如何设置modelscope默认加载模型不在c盘 而是指定当前项目某个文件夹下 #16

Closed qiuxin610 closed 8 months ago

qiuxin610 commented 8 months ago

目前想从默认的c盘下user的.cache下载的模型 挪到当前项目文件夹下。如何修改

cronrpc commented 8 months ago

参考代码: https://github.com/modelscope/modelscope/blob/a903ec7a898f5dfb44349e2ce15971ec5f08e528/modelscope/hub/utils/utils.py#L42 设置一个环境变量,MODELSCOPE_CACHE