RamAnanth1 commited on
Commit
fd5d390
1 Parent(s): 3e12b41

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +2 -5
model.py CHANGED
@@ -18,11 +18,8 @@ repo_dir = pathlib.Path(__file__).parent
18
  submodule_dir = repo_dir / 'ControlNet'
19
  sys.path.append(submodule_dir.as_posix())
20
 
21
- from annotator.canny import apply_canny
22
- from annotator.hed import apply_hed, nms
23
  from annotator.midas import apply_midas
24
- from annotator.mlsd import apply_mlsd
25
- from annotator.openpose import apply_openpose
26
  from annotator.uniformer import apply_uniformer
27
  from annotator.util import HWC3, resize_image
28
 
@@ -41,7 +38,7 @@ def download_all_controlnet_weights() -> None:
41
  class Model:
42
  def __init__(self,
43
  base_model_id: str = 'runwayml/stable-diffusion-v1-5',
44
- task_name: str = 'canny'):
45
  self.device = torch.device(
46
  'cuda:0' if torch.cuda.is_available() else 'cpu')
47
  self.base_model_id = ''
 
18
  submodule_dir = repo_dir / 'ControlNet'
19
  sys.path.append(submodule_dir.as_posix())
20
 
21
+
 
22
  from annotator.midas import apply_midas
 
 
23
  from annotator.uniformer import apply_uniformer
24
  from annotator.util import HWC3, resize_image
25
 
 
38
  class Model:
39
  def __init__(self,
40
  base_model_id: str = 'runwayml/stable-diffusion-v1-5',
41
+ task_name: str = 'depth'):
42
  self.device = torch.device(
43
  'cuda:0' if torch.cuda.is_available() else 'cpu')
44
  self.base_model_id = ''