stefanopini / simple-HRNet

Multi-person Human Pose Estimation with HRNet in Pytorch
GNU General Public License v3.0
579 stars 108 forks source link

TypeError: __init__() takes 2 positional arguments but 3 were given #101

Closed genkihoshino closed 2 years ago

genkihoshino commented 2 years ago

Hi, I am running it on GoogleColaboratory. The installation etc. should be working fine, but in the code '!python scripts/live-demo.py --filename sample.mp4' I get a 'Traceback (most recent call last): File "scripts/live-demo.py", line 185, in <module main(**args.dict) File "scripts/live-demo.py", line 67, in main device=device File "/content/drive/MyDrive/simple-HRNet/SimpleHRNet.py", line 136, in init device=device) File "/content/drive/MyDrive/simple-HRNet/models/detectors/YOLOv3.py", line 101, in init) self.model = Darknet(self.model_def,self.img_size).to(self.device) I get an error 'TypeError: init() takes 2 positional arguments but 3 were given'. The YOLO.py file has not been changed from the one in the repository. I would be glad to know how to solve this problem. Thank you in advance.

stefanopini commented 2 years ago

Hi, I'm happy you solved the issue! Could you post your solution for other people that may experience the same error?

genkihoshino commented 2 years ago

Hi, thanks for taking a look at my question. As it turns out, I couldn't solve my problem. However, using the simple-HigherHRNet code I was able to get the desired result. Sorry I could not suggest a solution.