Skip to content

download_weights.sh and get_coco_dataset not Windows Compatible #714

@zhengpengen

Description

@zhengpengen

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

  • 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

  • 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
  • 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 Unable to find installation candidates for torchvision (0.8.2) during poetry install #713 (comment)

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions