diff options
| author | junyanz <junyanzhu89@gmail.com> | 2018-02-10 19:57:10 -0500 |
|---|---|---|
| committer | junyanz <junyanzhu89@gmail.com> | 2018-02-10 19:57:10 -0500 |
| commit | 455e803e6b41580297e5c4a9f192a1ba891477c3 (patch) | |
| tree | c854373109eb6911c398673f27f374bcd799fa7f /models/cycle_gan_model.py | |
| parent | 4712e422bd5cfee7b5eac45a32b87a01c75b6ddd (diff) | |
fix cuda issue
Diffstat (limited to 'models/cycle_gan_model.py')
| -rw-r--r-- | models/cycle_gan_model.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/cycle_gan_model.py b/models/cycle_gan_model.py index bd21d28..730d077 100644 --- a/models/cycle_gan_model.py +++ b/models/cycle_gan_model.py @@ -72,8 +72,8 @@ class CycleGANModel(BaseModel): input_A = input['A' if AtoB else 'B'] input_B = input['B' if AtoB else 'A'] if len(self.gpu_ids) > 0: - input_A.cuda(self.gpu_ids[0], async=True) - input_B.cuda(self.gpu_ids[0], async=True) + input_A = input_A.cuda(self.gpu_ids[0], async=True) + input_B = input_B.cuda(self.gpu_ids[0], async=True) self.input_A = input_A self.input_B = input_B self.image_paths = input['A_paths' if AtoB else 'B_paths'] |
