CycleGAN icon indicating copy to clipboard operation
CycleGAN copied to clipboard

weird results with pretrained models

Open ahmedsalaheldin opened this issue 6 years ago • 10 comments

I can't reproduce the results even with the pretrained models. I get similar results for all data sets on gpu and cpu. A screen shot of the results below.

screenshot-2018-4-17 screenshot

ahmedsalaheldin avatar Apr 17 '18 13:04 ahmedsalaheldin

See this two posts 1 and 2 for solutions. Also check out our PyTorch version, which is more stable and still under active development.

junyanz avatar Apr 18 '18 20:04 junyanz

reinstalling torch didn't make a difference for me. I'll try the Pytorch version, thanks.

ahmedsalaheldin avatar Apr 20 '18 13:04 ahmedsalaheldin

I also meet the same problem, @ahmedsalaheldin did you solve it?

happsky avatar May 23 '18 12:05 happsky

@happsky and @ahmedsalaheldin Could you report your CUDA and Torch version?

junyanz avatar May 23 '18 22:05 junyanz

@happsky no I moved to the pytorch implementation as suggested and that works fine for me. @junyanz Cuda 9.0 . I'm not aware that torch keeps a version system. edit: torch commit: commit 0219027e6c4644a0ba5c5bf137c989a0a8c9e01b

ahmedsalaheldin avatar May 24 '18 10:05 ahmedsalaheldin

@junyanz Cuda 8.0 and torch version is commit 0219027e6c4644a0ba5c5bf137c989a0a8c9e01b. @ahmedsalaheldin did you find any pretrained pytorch model for style tranfer?

happsky avatar May 24 '18 18:05 happsky

Hello, I did a fresh install of the newest torch version 0219027e6c4644a0ba5c5bf137c989a0a8c9e01b, and the running the pretrained model produced fine results. image

I have CUDA 9.0 and libcudnn.so.7.1.4. There were a few glitches when I installed Torch. I had to install with export TORCH_NVCC_FLAGS="-D__CUDA_NO_HALF_OPERATORS__" that disabled half-precision operations. I also followed this link to run Torch with cudnn v7.

Unfortunately, I could not replicate the problem... I would appreciate a lot if someone who had the same problem could share a fix.

taesungp avatar May 24 '18 23:05 taesungp

@taesung89 what's you Lua version, 5.1 or 5.2?

happsky avatar May 25 '18 13:05 happsky

@happsky I trained the pytorch model myself. training the torch model gave me weird results too which is why I tried the pretrained models P.S I tried the torch version with all lua versions

ahmedsalaheldin avatar May 25 '18 14:05 ahmedsalaheldin

@ahmedsalaheldin may you share the pytorch pre-trained models?

happsky avatar May 25 '18 20:05 happsky