Ashrafb commited on
Commit
60ffb70
·
verified ·
1 Parent(s): 8e5c44f

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -158,7 +158,7 @@ class Model:
158
  return self.detect_and_align(frame, top, bottom, left, right)
159
 
160
 
161
- def image_toonify(self, aligned_face: np.ndarray, instyle: torch.Tensor, exstyle: torch.Tensor, style_degree: float, style_type: str) -> tuple[np.ndarray, str]:
162
  if instyle is None or aligned_face is None:
163
  return np.zeros((256, 256, 3), np.uint8), 'Opps, something wrong with the input. Please go to Step 2 and Rescale Image/First Frame again.'
164
  if self.style_name != style_type:
 
158
  return self.detect_and_align(frame, top, bottom, left, right)
159
 
160
 
161
+ def image_toonify(self, aligned_face: np.ndarray, instyle: torch.Tensor, exstyle: torch.Tensor, style_degree: float, style_type: str) -> tuple[np.ndarray, str]:
162
  if instyle is None or aligned_face is None:
163
  return np.zeros((256, 256, 3), np.uint8), 'Opps, something wrong with the input. Please go to Step 2 and Rescale Image/First Frame again.'
164
  if self.style_name != style_type: