MandyMo / pytorch_HMR

pytorch version of "End-to-end Recovery of Human Shape and Pose"
594 stars 95 forks source link

Which Python version? #8

Closed Dawars closed 5 years ago

Dawars commented 5 years ago

Which Python version did you use?

I'm getting an error for trainer.py line 302

  for iter_index in range(config.args.iter_count):
            try:
                data_2d = loader_2d.next() # <-

next is a built-in function from python 3 and should be called next(loader_2d)

And with Python 2.7 I get an error for copying a list in COCO2017_dataloader.py at line 117

self.boxs.append(box.copy())

This feature is only from Python 3.5

Dawars commented 5 years ago

I solved it by replacing next() as described above and ran with python3 pytorch 0.4.1

MandyMo commented 5 years ago

thank you.

Python 3.6 & Pytorch 0.4.0 were used in these code.