mirror of
https://github.com/iperov/DeepFaceLive
synced 2025-07-06 04:52:14 -07:00
fix ImageProcessor.py
This commit is contained in:
parent
cbb2258a27
commit
96931d6619
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ class ImageProcessor:
|
|||
else:
|
||||
img = sp.ndimage.zoom(img, (scale, scale, 1.0), order=1)
|
||||
|
||||
H,W,_ = img.shape
|
||||
H,W = img.shape[0:2]
|
||||
img = img.reshape( (H,W,N,C) ).transpose( (2,0,1,3) )
|
||||
|
||||
if pad_to_target:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue