pkuliyi2015 / sd-webui-stablesr

StableSR for Stable Diffusion WebUI - Ultra High-quality Image Upscaler
https://iceclear.github.io/projects/stablesr/
Other
1.05k stars 54 forks source link

if use --data-dir in command line, this extensions will get an path error #62

Open AntonyM55 opened 8 months ago

AntonyM55 commented 8 months ago

if use --data-dir in command line, this extensions will get an path error, it shows stable diffution's path, but not data-dir,

I fixed this, with this code,

from modules import paths ME_PATH = Path(paths.extensions_dir, 'sd-webui-stablesr') MODEL_PATH = ME_PATH / 'models'