RamAnanth1 commited on
Commit
928a499
1 Parent(s): 847b720

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +2 -4
model.py CHANGED
@@ -62,10 +62,8 @@ class Model:
62
  def download_models(self) -> None:
63
  self.model_dir.mkdir(exist_ok=True, parents=True)
64
  device = 'cuda'
65
-
66
- config_file = config_path+'test_sketch.yaml'
67
- subprocess.run(shlex.split(f'wget {config_file} -O config_sketch.yaml'))
68
- config = OmegaConf.load("config_sketch.yaml")
69
  config.model.params.cond_stage_config.params.device = device
70
 
71
  base_model_file = "https://huggingface.co/CompVis/stable-diffusion-v-1-4-original/resolve/main/sd-v1-4.ckpt"
 
62
  def download_models(self) -> None:
63
  self.model_dir.mkdir(exist_ok=True, parents=True)
64
  device = 'cuda'
65
+
66
+ config = OmegaConf.load("configs/stable-diffusion/test_sketch.yaml)
 
 
67
  config.model.params.cond_stage_config.params.device = device
68
 
69
  base_model_file = "https://huggingface.co/CompVis/stable-diffusion-v-1-4-original/resolve/main/sd-v1-4.ckpt"