Spaces:
Running
on
Zero
Running
on
Zero
init
Browse files
app.py
CHANGED
|
@@ -180,7 +180,7 @@ class ControlNetDepthDesignModelMulti:
|
|
| 180 |
""" Produces random noise images """
|
| 181 |
def __init__(self):
|
| 182 |
""" Initialize your model(s) here """
|
| 183 |
-
|
| 184 |
#os.environ['HF_HUB_OFFLINE'] = "True"
|
| 185 |
controlnet_depth= ControlNetModel.from_pretrained(
|
| 186 |
"controlnet_depth", torch_dtype=dtype, use_safetensors=True)
|
|
@@ -363,9 +363,7 @@ def create_demo(model):
|
|
| 363 |
|
| 364 |
def main():
|
| 365 |
model = ControlNetDepthDesignModelMulti()
|
| 366 |
-
model = model.to(device)
|
| 367 |
print('Models uploaded successfully')
|
| 368 |
-
print(model.device)
|
| 369 |
|
| 370 |
title = "# StableDesign"
|
| 371 |
description = """
|
|
|
|
| 180 |
""" Produces random noise images """
|
| 181 |
def __init__(self):
|
| 182 |
""" Initialize your model(s) here """
|
| 183 |
+
device = torch.device("cuda")
|
| 184 |
#os.environ['HF_HUB_OFFLINE'] = "True"
|
| 185 |
controlnet_depth= ControlNetModel.from_pretrained(
|
| 186 |
"controlnet_depth", torch_dtype=dtype, use_safetensors=True)
|
|
|
|
| 363 |
|
| 364 |
def main():
|
| 365 |
model = ControlNetDepthDesignModelMulti()
|
|
|
|
| 366 |
print('Models uploaded successfully')
|
|
|
|
| 367 |
|
| 368 |
title = "# StableDesign"
|
| 369 |
description = """
|