microsoft / singleshotpose

This research project implements a real-time object detection and pose estimation method as described in the paper, Tekin et al. "Real-Time Seamless Single Shot 6D Object Pose Prediction", CVPR 2018. (https://arxiv.org/abs/1711.08848).
MIT License
725 stars 214 forks source link

Train.py execution error #106

Open ManzarIMalik opened 5 years ago

ManzarIMalik commented 5 years ago

I am trying to train prebuilt dataset using: $ python train.py cfg/ape.data cfg/yolo-pose.cfg backup/ape/init.weights And got this error upon execution, please help in troubleshooting.

Traceback (most recent call last): File "train.py", line 289, in nsamples = file_lines(trainlist) File "/content/singleshotpose/utils.py", line 1011, in file_lines count += buffer.count('\n') TypeError: a bytes-like object is required, not 'str'

nico-buehler commented 5 years ago

I faced the same issue. Change line number 1006 to: thefile = open(thefilepath, 'r')