WongKinYiu / yolov7

Implementation of paper - YOLOv7: Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors
GNU General Public License v3.0
13.07k stars 4.13k forks source link

github API problem #906

Open MrMabulous opened 1 year ago

MrMabulous commented 1 year ago

for some reason

https://api.github.com/repos/WongKinYiu/yolov7/releases/latest

currently returns

{ "message": "Not Found", "documentation_url": "https://docs.github.com/rest/reference/repos#get-the-latest-release" }

instead of the json of the latest release.

since https://api.github.com/repos/WongKinYiu/yolov7/releases/latest doesn't return the proper json, attempt_download in google_utils.py fails to download pretrained checkpoints by name from the release.

on the other hand, getting the release by tag works fine: https://api.github.com/repos/WongKinYiu/yolov7/releases/tags/v0.1

also the same URL scheme on the yolov5 repository works fine: https://api.github.com/repos/ultralytics/yolov5/releases/latest

Seems to be some github API problem or maybe misconfiguration of the repository?

WongKinYiu commented 1 year ago

Because of this repo current has only pre-release, so latest flag is not yet be created.

MrMabulous commented 1 year ago

Seems still like an inconsistency in the GitHub API though, since the release IS listed in https://api.github.com/repos/WongKinYiu/yolov7/releases