thohemp / 6DRepNet360

Official Pytorch implementation of "Towards Robust and Unconstrained Full Range of Rotation Head Pose Estimation" IEEE TIP 24
MIT License
114 stars 2 forks source link

Broken weights link #2

Closed awarebayes closed 12 months ago

awarebayes commented 12 months ago

Greetings, I was trying to run test.py, but could not download the model:

❯ python test.py
Loading data.
/home/mscherbina/Documents/github_repos/6DRepNet/dataset/AFLW2000/files.txt
Downloading: "https://cloud.ovgu.de/s/jFd5JAacLdAtZ4N/download/6DRepNet360_300W_LP_AFLW2000.pth" to /home/mscherbina/.cache/torch/hub/checkpoints/6DRepNet360_300W_LP_AFLW2000.pth
Traceback (most recent call last):
  File "/home/mscherbina/Documents/github_repos/6DRepNet360/sixdrepnet360/test.py", line 168, in <module>
    saved_state_dict = load_state_dict_from_url(
  File "/home/mscherbina/anaconda3/lib/python3.9/site-packages/torch/hub.py", line 727, in load_state_dict_from_url
    download_url_to_file(url, cached_file, hash_prefix, progress=progress)
  File "/home/mscherbina/anaconda3/lib/python3.9/site-packages/torch/hub.py", line 593, in download_url_to_file
    u = urlopen(req)
  File "/home/mscherbina/anaconda3/lib/python3.9/urllib/request.py", line 214, in urlopen
    return opener.open(url, data, timeout)
  File "/home/mscherbina/anaconda3/lib/python3.9/urllib/request.py", line 523, in open
    response = meth(req, response)
  File "/home/mscherbina/anaconda3/lib/python3.9/urllib/request.py", line 632, in http_response
    response = self.parent.error(
  File "/home/mscherbina/anaconda3/lib/python3.9/urllib/request.py", line 561, in error
    return self._call_chain(*args)
  File "/home/mscherbina/anaconda3/lib/python3.9/urllib/request.py", line 494, in _call_chain
    result = func(*args)
  File "/home/mscherbina/anaconda3/lib/python3.9/urllib/request.py", line 641, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found
awarebayes commented 12 months ago

Could you please update the link?

thohemp commented 12 months ago

Link updated. https://github.com/thohemp/6DRepNet360/commit/41bad95f059f66cf881825c5f9abd78edf729941

awarebayes commented 12 months ago

Also, do you mind if I ask when this will be open sourced?

awarebayes commented 12 months ago

Also I do not think this is correct: https://github.com/thohemp/6DRepNet360/blob/41bad95f059f66cf881825c5f9abd78edf729941/sixdrepnet360/test.py#L187

We know that 30 +- 360 degrees are the same angle. However, 30 -+ 180 is not the same. So when calculating error, subtracting and adding 180 is incorrect, because we work in 360 world. Maybe you copied the code from your previous work, where the degrees could wrap like that, so it would make sense in the previous repo

awarebayes commented 12 months ago

This does not affect the results however, just a sensible thing