JackAILab commited on
Commit
cde13ad
·
verified ·
1 Parent(s): d66e343

Update pipline_StableDiffusionXL_ConsistentID.py

Browse files
pipline_StableDiffusionXL_ConsistentID.py CHANGED
@@ -264,9 +264,12 @@ class ConsistentIDStableDiffusionXLPipeline(StableDiffusionXLPipeline):
264
  def get_prepare_faceid(self, input_image_file=None, input_image_path=None):
265
  try:
266
  faceid_image = cv2.imread(input_image_path)
 
267
  except:
268
  faceid_image = np.array(input_image_file) ### use the numpy image
269
-
 
 
270
  face_info = self.app.get(faceid_image)
271
  if face_info==[]:
272
  faceid_embeds = torch.zeros_like(torch.empty((1, 512)))
 
264
  def get_prepare_faceid(self, input_image_file=None, input_image_path=None):
265
  try:
266
  faceid_image = cv2.imread(input_image_path)
267
+ print(f"input_image_path is : {input_image_path}")
268
  except:
269
  faceid_image = np.array(input_image_file) ### use the numpy image
270
+ print(f"input_image_file is : {input_image_file}\r\n")
271
+
272
+ print(f"faceid_image is : {faceid_image}")
273
  face_info = self.app.get(faceid_image)
274
  if face_info==[]:
275
  faceid_embeds = torch.zeros_like(torch.empty((1, 512)))