xichenhku commited on
Commit
dfe48d2
1 Parent(s): e2bad22

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -21,14 +21,13 @@ from models.depth_guider import DepthGuider
21
  from mimicbrush import MimicBrush_RefNet
22
  from data_utils import *
23
  from modelscope.hub.snapshot_download import snapshot_download as ms_snapshot_download
24
- from huggingface_hub import snapshot_download
25
 
26
 
27
 
 
 
28
  model_dir = ms_snapshot_download('xichen/MimicBrush', cache_dir='./weights')
29
- snapshot_download(repo_id="runwayml/stable-diffusion-v1-5", local_dir="./stable-diffusion-v1-5")
30
- snapshot_download(repo_id="runwayml/stable-diffusion-inpainting", local_dir="./stable-diffusion-inpainting")
31
- val_configs = OmegaConf.load('./configs/inference.yaml')
32
 
33
  # === import Depth Anything ===
34
  import sys
 
21
  from mimicbrush import MimicBrush_RefNet
22
  from data_utils import *
23
  from modelscope.hub.snapshot_download import snapshot_download as ms_snapshot_download
 
24
 
25
 
26
 
27
+ sd_dir = ms_snapshot_download('xichen/cleansd', cache_dir='./cleansd')
28
+ print('=== Pretrained SD weights downloaded ===')
29
  model_dir = ms_snapshot_download('xichen/MimicBrush', cache_dir='./weights')
30
+ print('=== MimicBrush weights downloaded ===')
 
 
31
 
32
  # === import Depth Anything ===
33
  import sys