Skip to content

Commit

Permalink
Merge pull request PaddlePaddle#36 from LielinJiang/fix-to-variable
Browse files Browse the repository at this point in the history
Fix to_variable
  • Loading branch information
LielinJiang authored Oct 14, 2020
2 parents 5500675 + 01b747c commit b22c19e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ppgan/models/pix2pix_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ def set_input(self, input):
"""

AtoB = self.opt.dataset.train.direction == 'AtoB'
self.real_A = paddle.to_variable(input['A' if AtoB else 'B'])
self.real_B = paddle.to_variable(input['B' if AtoB else 'A'])
self.real_A = paddle.to_tensor(input['A' if AtoB else 'B'])
self.real_B = paddle.to_tensor(input['B' if AtoB else 'A'])

self.image_paths = input['A_paths' if AtoB else 'B_paths']

Expand Down

0 comments on commit b22c19e

Please sign in to comment.