Closed RandomFool123 closed 5 years ago
Hi, I think your solution is right. However, with a pytorch version > 0.3.1, many more places need to be changed (to know the differences in pytorch 0.3.1, 0.4, and 1.0, please check the official website). So I would recommend using pytorch 0.3.1 before we release the next version.
Thank you for your answer.
My pytorch vision is 1.0.1 instead of 0.3.1,and when I run the
gen_mnist.py
,it seem occur a wrong that:So I try to solve it by changing
h_, w_ = round(h * scale * ratio), round(w * scale / ratio)
intoh_, w_ = np.round(h * scale * ratio),np. round(w * scale / ratio)
.Then it seem work,but I don't know if it will affect the result.