SforAiDl / Playground

A python library consisting of pipelines for visual analysis of different sports using Computer Vision and Deep Learning.
MIT License
18 stars 17 forks source link

auto download of weights #11

Closed mahakkothari closed 4 years ago

mahakkothari commented 4 years ago

added a feature to check if weights file has been downloaded, if no, it is downloaded within code

ashwinvaswani commented 4 years ago

Seems fine. However the switching of directories is not required and can be optimized by optimising download_weights.sh by adding a '-P ./config' argument to the wget call. That will help in downloading the file to the config folder without explicitly going to that folder. Now you won't have to change directories and would optimize the performance by a bit. Please make the change and update the PR. Best of luck!

mahakkothari commented 4 years ago

The problem with the use of -P is that I have to give the absolute path as I don't know the present directory of the user