PyTorch-YOLOv3 icon indicating copy to clipboard operation
PyTorch-YOLOv3 copied to clipboard

download_weights.sh and get_coco_dataset not Windows Compatible

Open zhengpengen opened this issue 4 years ago • 0 comments

When on Windows 10 command prompt, running ./weights/download_weights.sh terminal yields:

'.' is not recognized as an internal or external command, operable program or batch file.

Running cd weights followed by download_weights.sh yields:

bash: get: command not found

Context

  • [X] I have installed this repo manually and the issue occurred on this commit: 7bee67f
  • [ ] I have installed this repo via PIP and the issue occurred on version:
  • [ ] The issue occurred when using the following .cfg model:
    • [ ] yolov3
    • [ ] yolov3-tiny
    • [ ] CUSTOM

Necessary Checks

  • [X] The issue occurred on the newest version
  • [ ] I couldn't find a similar issue here on this project's github repo
  • [ ] If the issue is CUDA related (CUDA error), I have tested and provided the traceback also when CUDA is turned off
  • [X] I have provided all tracebacks or printouts in Text Form
  • [ ] In case, the issue occurred on a custom .cfg model, I have provided the model down below

Expected behavior

Weights should be downloaded through terminal

Current behavior

Error mentioned above

Steps to Reproduce

  1. Use Windows 10 OS
  2. Clone the repo
  3. cd into repo home directory and run ./weights/download_weights.sh
  4. cd weights and run download_weights.sh ...

Possible Solution

  1. Write a python script yourself to run the wget in python (Assuming pip3 install wget has been done)
  2. Download the links by hand following fix provided in this comment https://github.com/eriklindernoren/PyTorch-YOLOv3/issues/713#issuecomment-877627940

Additional Notes

This bug was solved in one of my other bug reports but I'm submitting the issue here for documentation and also as a formal request for the bash script in the form of a python script for cross-platform compatibility outside of Linux distros.

zhengpengen avatar Jul 10 '21 16:07 zhengpengen