Rename controlnet_depth_canny_segmentation.py to app.py
Browse files
controlnet_depth_canny_segmentation.py → app.py
RENAMED
@@ -25,7 +25,7 @@ from transformers import Mask2FormerForUniversalSegmentation, Mask2FormerImagePr
|
|
25 |
stable_diffusion_base = "runwayml/stable-diffusion-v1-5"
|
26 |
|
27 |
# Path to your fine-tuned ControlNet Depth model
|
28 |
-
finetune_controlnet_depth_path = "/
|
29 |
|
30 |
# Pre-trained ControlNet models for Canny and Segmentation
|
31 |
# These are standard models from the lllyasviel collection, optimized for these tasks.
|
@@ -345,7 +345,4 @@ with gr.Blocks() as iface:
|
|
345 |
load_diffusion_pipeline_and_controlnets()
|
346 |
|
347 |
if __name__ == "__main__":
|
348 |
-
iface.launch(debug=True, share=True)
|
349 |
-
|
350 |
-
from google.colab import drive
|
351 |
-
drive.mount('/content/drive')
|
|
|
25 |
stable_diffusion_base = "runwayml/stable-diffusion-v1-5"
|
26 |
|
27 |
# Path to your fine-tuned ControlNet Depth model
|
28 |
+
finetune_controlnet_depth_path = "controlnt/"
|
29 |
|
30 |
# Pre-trained ControlNet models for Canny and Segmentation
|
31 |
# These are standard models from the lllyasviel collection, optimized for these tasks.
|
|
|
345 |
load_diffusion_pipeline_and_controlnets()
|
346 |
|
347 |
if __name__ == "__main__":
|
348 |
+
iface.launch(debug=True, share=True)
|
|
|
|
|
|