Open Dr-Zhou opened 5 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
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.
the 'xrange' is in 'for epoch in xrange(opt.max_epoch):' is wrong.