Update controlnet_module.py
#1
by
Astridkraft
- opened
- controlnet_module.py +2 -1
controlnet_module.py
CHANGED
|
@@ -63,7 +63,8 @@ class ControlNetProcessor:
|
|
| 63 |
if detector is None:
|
| 64 |
return self.extract_pose_simple(image)
|
| 65 |
|
| 66 |
-
pose_image = detector(image, hand_and_face=True, detect_resolution=512)
|
|
|
|
| 67 |
return pose_image
|
| 68 |
except Exception as e:
|
| 69 |
print(f"Fehler bei Pose-Extraktion: {e}")
|
|
|
|
| 63 |
if detector is None:
|
| 64 |
return self.extract_pose_simple(image)
|
| 65 |
|
| 66 |
+
#pose_image = detector(image, hand_and_face=True, detect_resolution=512)
|
| 67 |
+
pose_image = detector.detect(image, hand_and_face=True)
|
| 68 |
return pose_image
|
| 69 |
except Exception as e:
|
| 70 |
print(f"Fehler bei Pose-Extraktion: {e}")
|