mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-06 04:52:13 -07:00
extractor: fix for amd
This commit is contained in:
parent
f17a54b23a
commit
8035325f92
1 changed files with 7 additions and 1 deletions
|
@ -63,7 +63,13 @@ class FANExtractor(object):
|
|||
images += [ self.crop(input_image, c, scale) ]
|
||||
|
||||
images = np.stack (images)
|
||||
predicted = self.model.predict (images.astype(np.float32) / 255.0).transpose (0,3,1,2)
|
||||
images = images.astype(np.float32) / 255.0
|
||||
|
||||
predicted = []
|
||||
for i in range( len(images) ):
|
||||
predicted += [ self.model.predict ( images[i][None,...] ).transpose (0,3,1,2)[0] ]
|
||||
|
||||
predicted = np.stack(predicted)
|
||||
|
||||
for i, pred in enumerate(predicted):
|
||||
ptss += [ self.get_pts_from_predict ( pred, centers[i], scale) ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue