Spaces:
Running
on
Zero
Running
on
Zero
Update pulid/pipeline_flux.py
Browse files- pulid/pipeline_flux.py +3 -0
pulid/pipeline_flux.py
CHANGED
@@ -44,6 +44,7 @@ class PuLIDPipeline(nn.Module):
|
|
44 |
|
45 |
# preprocessors
|
46 |
# face align and parsing
|
|
|
47 |
self.face_helper = FaceRestoreHelper(
|
48 |
upscale_factor=1,
|
49 |
face_size=512,
|
@@ -135,6 +136,8 @@ class PuLIDPipeline(nn.Module):
|
|
135 |
|
136 |
# using facexlib to detect and align face
|
137 |
self.face_helper.read_image(image_bgr)
|
|
|
|
|
138 |
self.face_helper.get_face_landmarks_5(only_center_face=True)
|
139 |
self.face_helper.align_warp_face()
|
140 |
if len(self.face_helper.cropped_faces) == 0:
|
|
|
44 |
|
45 |
# preprocessors
|
46 |
# face align and parsing
|
47 |
+
print('pipeline init: ', self.device)
|
48 |
self.face_helper = FaceRestoreHelper(
|
49 |
upscale_factor=1,
|
50 |
face_size=512,
|
|
|
136 |
|
137 |
# using facexlib to detect and align face
|
138 |
self.face_helper.read_image(image_bgr)
|
139 |
+
print('face_det_device: ', self.face_helper.face_det.device)
|
140 |
+
print('face_det_mean_tensor_device: ', self.face_helper.face_det.mean_tensor.device)
|
141 |
self.face_helper.get_face_landmarks_5(only_center_face=True)
|
142 |
self.face_helper.align_warp_face()
|
143 |
if len(self.face_helper.cropped_faces) == 0:
|