chenyuntc / pytorch-GAN

A minimal implementaion (less than 150 lines of code with visualization) of DCGAN/WGAN in PyTorch with jupyter notebooks
MIT License
189 stars 72 forks source link

the 'xrange' is error #2

Open Dr-Zhou opened 5 years ago

Dr-Zhou commented 5 years ago

the 'xrange' is in 'for epoch in xrange(opt.max_epoch):' is wrong.

BisratM commented 4 years ago

This code appears to be written with Python 2 and it seems like you're trying to run it with Python 3. xrange was renamed to range in Python 3 so that should fix your problem

Dr-Zhou commented 4 years ago

thank you.------------------ Original ------------------ From: "BisratM"notifications@github.com Date: Sat, Dec 28, 2019 06:39 AM To: "chenyuntc/pytorch-GAN"pytorch-GAN@noreply.github.com; Cc: "biaozhou"www.815152974@qq.com;"Author"author@noreply.github.com; Subject: Re: [chenyuntc/pytorch-GAN] the 'xrange' is error (#2)

This code appears to be written with Python 2 and it seems like you're trying to run it with Python 3. xrange was renamed to range in Python 3 so that should fix your problem

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.