thtrieu / darkflow

Translate darknet to tensorflow. Load trained weights, retrain/fine-tune using tensorflow, export constant graph def to mobile devices
GNU General Public License v3.0
6.13k stars 2.08k forks source link

docker run flow savepb out error #607

Open 1371030 opened 6 years ago

1371030 commented 6 years ago

docker run -it -v /Users/admin/yolo:/yolo davvdg/darkflow-docker flow --model /yolo/tiny-yolo-voc.cfg --load /yolo/tiny-yolo-voc.weights --savepb

Rebuild a constant version ... Traceback (most recent call last): File "/usr/local/bin/flow", line 6, in cliHandler(sys.argv) File "/usr/local/lib/python2.7/dist-packages/darkflow/cli.py", line 35, in cliHandler tfnet.savepb(); exit('Done') File "/usr/local/lib/python2.7/dist-packages/darkflow/net/build.py", line 171, in savepb os.makedirs(os.path.dirname(name), exist_ok=True) TypeError: makedirs() got an unexpected keyword argument 'exist_ok'

run-me commented 5 years ago

this is a python version conflict. Try using python3 if your using python2. docker run -it -v /Users/admin/yolo:/yolo davvdg/darkflow-docker python3 flow --model /yolo/tiny-yolo-voc.cfg --load /yolo/tiny-yolo-voc.weights --savepb

1371030 commented 5 years ago

thanks