amdegroot / ssd.pytorch

A PyTorch Implementation of Single Shot MultiBox Detector
MIT License
5.12k stars 1.74k forks source link

coco paths and instalation instructions #145

Open xkunglu opened 6 years ago

xkunglu commented 6 years ago

hey amdegroot, first thanks for this work, it is shaping up quite nicely - i liked it before, I like it better now. I pulled the latest a couple days ago and i noticed that you'd added coco. Great. A couple things I notice:

installation script works with ~/data to download coco dataset; but then coco.py looks for coco_labels.txt under the COCO_ROOT which is defined as HOME, data/coco - instead of the immediate vicinity. It would be cool if COCO_ROOT was defined outside the code on install, somewhere - for those who are using COCO with other networks. I also notice that you dont mention how to get pycocotools running; maybe a note in the installation would work.

Also, I noticed that you have something that doesn't seem to make sense to me in your demo ipython notebook: you mean center the data to [104., 117., 123.] imgnet and then you plt.imshow(x) it. My version of matplotlib 2.1.2 barfs at trying to display a float image between -110.0+ to +150.0+. All these things are minor.

thanks

YangBain commented 6 years ago

@xkunglu Hi, when i make the cocoapi, in the PythonAPI i can not make. I use anaconda3 (Python3.6). Could you give me some suggestions? Thanks.

javiervdp commented 6 years ago

I dont remember what I did YangBain, Ill set it up in another machine, then post the steps.