jms13333333 / Generative-Adversarial-Network-in-Tensorflow

Using pyton to implement a Generative Adversarial Network (GAN) with tensorflow and based on keras dataset
0 stars 0 forks source link

训练失败 #1

Open hilarity2023 opened 1 month ago

hilarity2023 commented 1 month ago

mnist_500 mnist_999 mnist_10000 训练了500,1000,10000轮次,生成器生成的图片是乱码。TensorFlow1.8和TensorFlow2.4都试过了,都不行。 我还有另一个代码是TensorFlow1.8版本的,但是我想用GPU计算,所以升级到了TensorFlow2.4,在TensorFlow1.8版本中训练效果随轮次增加越来越好,但是在TensorFlow2.4版本中就是乱码,请问你知道怎么解决这个问题吗?

jms13333333 commented 1 month ago

你好 我試過了你給定的訓練次數,基本上這個模型至少需要訓練25000次才會有正確的結果 我自己是訓練30000次,不過這需要訓練數小時 至於tensorflow版本的問題我自己也找不到頭緒,我是用tensorflow 1.8

hilarity2023 @.***> 於 2024年9月7日 週六 下午10:01寫道:

mnist_500.png (view on web) https://github.com/user-attachments/assets/375d4d5d-b125-42ce-bdd4-52a9ff16d304 mnist_999.png (view on web) https://github.com/user-attachments/assets/7885d2c7-8f34-4f53-b451-708f7ddc564e mnist_10000.png (view on web) https://github.com/user-attachments/assets/c0705632-7a39-44f0-b8e1-6db8fa91aad4 训练了500,1000,10000轮次,生成器生成的图片是乱码。TensorFlow1.8和TensorFlow2.4都试过了,都不行。

我还有另一个代码是TensorFlow1.8版本的,但是我想用GPU计算,所以升级到了TensorFlow2.4,在TensorFlow1.8版本中训练效果随轮次增加越来越好,但是在TensorFlow2.4版本中就是乱码,请问你知道怎么解决这个问题吗?

— Reply to this email directly, view it on GitHub https://github.com/jms13333333/Generative-Adversarial-Network-in-Tensorflow/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/BFQK6762FDJCXOSY5ZW6PPDZVMBMZAVCNFSM6AAAAABN2BTWNOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGUYTCNRWGAZTONQ . You are receiving this because you are subscribed to this thread.Message ID: <jms13333333/Generative-Adversarial-Network-in-Tensorflow/issues/1@ github.com>

hilarity2023 commented 1 month ago

非常感谢您的回复,既然解决不了版本问题,我打算找其它的高版本的代码