Spaces:
Running
Running
Update model.py
Browse files
model.py
CHANGED
@@ -37,7 +37,7 @@ def download_all_controlnet_weights() -> None:
|
|
37 |
|
38 |
|
39 |
class Model:
|
40 |
-
def __init__(self, base_model_id: str = "
|
41 |
self.device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
42 |
self.base_model_id = ""
|
43 |
self.task_name = ""
|
|
|
37 |
|
38 |
|
39 |
class Model:
|
40 |
+
def __init__(self, base_model_id: str = "botp/stable-diffusion-v1-5", task_name: str = "Canny"):
|
41 |
self.device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
42 |
self.base_model_id = ""
|
43 |
self.task_name = ""
|