Мясников Филипп Сергеевич commited on
Commit
1816654
1 Parent(s): 258a840
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -67,7 +67,7 @@ def inference(img):
67
 
68
  my_w = projection(aligned_face, "test.pt", device).unsqueeze(0)
69
 
70
- npimage = my_w.permute(1, 2, 0).detach().numpy()
71
  imageio.imwrite('filename.jpeg', npimage)
72
  return 'filename.jpeg'
73
 
 
67
 
68
  my_w = projection(aligned_face, "test.pt", device).unsqueeze(0)
69
 
70
+ npimage = my_w.numpy()
71
  imageio.imwrite('filename.jpeg', npimage)
72
  return 'filename.jpeg'
73