Ahsen Khaliq commited on
Commit
334026c
1 Parent(s): 55cd8d4

Update util.py

Browse files
Files changed (1) hide show
  1. util.py +1 -1
util.py CHANGED
@@ -162,7 +162,7 @@ def align_face(filepath, output_size=256, transform_size=1024, enable_padding=Tr
162
  qsize = np.hypot(*x) * 2
163
 
164
  # read image
165
- img = filepath
166
 
167
  transform_size = output_size
168
  enable_padding = True
 
162
  qsize = np.hypot(*x) * 2
163
 
164
  # read image
165
+ img = Image.open(filepath)
166
 
167
  transform_size = output_size
168
  enable_padding = True