Skip to content

Instantly share code, notes, and snippets.

View patrickgalbraith's full-sized avatar
🏠
Working from home

Patrick Galbraith patrickgalbraith

🏠
Working from home
View GitHub Profile
@patrickgalbraith
patrickgalbraith / hack.diff
Last active May 12, 2023 00:48 — forked from JaySmithWpg/hack.diff
Hack to load custom depth map
diff --git a/modules/processing.py b/modules/processing.py
index 24c537d..0525cfd 100644
--- a/modules/processing.py
+++ b/modules/processing.py
@@ -156,20 +156,41 @@ class StableDiffusionProcessing():
return image_conditioning
def depth2img_image_conditioning(self, source_image):
- # Use the AddMiDaS helper to Format our source image to suit the MiDaS model
- transformer = AddMiDaS(model_type="dpt_hybrid")