Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/neuralchen/SimSwap into main
Browse files Browse the repository at this point in the history
  • Loading branch information
neuralchen committed Jun 15, 2021
2 parents 7d68e1d + 5e3753b commit faa6fe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test_one_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def lcm(a, b): return abs(a * b) / fractions.gcd(a, b) if a and b else 0
img_id_downsample = F.interpolate(img_id, scale_factor=0.5)
latend_id = model.netArc(img_id_downsample)
latend_id = latend_id.detach().to('cpu')
latend_id = latend_id/np.linalg.norm(latend_id)
latend_id = latend_id/np.linalg.norm(latend_id,axis=1,keepdims=True)
latend_id = latend_id.to('cuda')


Expand Down

0 comments on commit faa6fe1

Please sign in to comment.