Zhendong-Wang / Diffusion-GAN

Official PyTorch implementation for paper: Diffusion-GAN: Training GANs with Diffusion
MIT License
615 stars 65 forks source link

How to sample the images with trained model? #15

Open gymoon10 opened 1 year ago

gymoon10 commented 1 year ago

Hi, I'm Goo-Young Moon, a master's degree student at Korea University. I read your paper interestingly while investigating the research on diffusion models. But, I opened the issue as I had some problems while I was executing codes you uploaded.

I trained the diffusion-projected-gan and got the best_model.pkl. But there is a problem that the best_model.pkl is not loaded properly when sampling images through 'gen_images.py'. I attached options and error messages below.

I'm sorry to bother you, but I'd appreciate your help. Thank you for your research and hard work.

error1

error2

Zhendong-Wang commented 1 year ago

Hi Goo-Young, I double checked from my end and it shows the current code works fine. Probably something wrong with your Pytorch version.

Could be a problem on your end and I guess it is because of your pytorch version.

Zhendong-Wang commented 1 year ago

Hi Goo-Young,

I double checked from my end and it shows the current code works fine. Probably something wrong with your Pytorch version.

Could be a problem on your end and I guess it is because of your pytorch version.

On Sun, Jan 29, 2023 at 8:48 PM Goo Young Moon @.***> wrote:

Hi, I'm Goo-Young Moon, a master's degree student at Korea University. I read your paper interestingly while investigating the research on diffusion models. But, I opened the issue as I had some problems while I was executing codes you uploaded.

I trained the diffusion-projected-gan and got the best_model.pkl. But there is a problem that the best_model.pkl is not loaded properly when sampling images through 'gen_images.py'. I attached options and error messages below.

I'm sorry to bother you, but I'd appreciate your help. Thank you for your research and hard work.

[image: error1] https://user-images.githubusercontent.com/44194558/215376976-684f6def-f2a4-4fd2-a6aa-2762ee0c5114.PNG

[image: error2] https://user-images.githubusercontent.com/44194558/215376978-1adf8e4e-2062-43fd-a508-befacb658358.PNG

— Reply to this email directly, view it on GitHub https://github.com/Zhendong-Wang/Diffusion-GAN/issues/15, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKNPMG45JKLPD6GUHIE4HD3WU4TY7ANCNFSM6AAAAAAUKT37RM . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Zhendong Wang PhD Student University of Texas at Austin Department of Statistics and Data Sciences