pix2vertex.pytorch icon indicating copy to clipboard operation
pix2vertex.pytorch copied to clipboard

Problem with downloading the faces_hybrid_and_rotated_2.pth file

Open sbersier opened this issue 3 years ago • 0 comments

After executing the reconstruct_pipeline.ipynb notebook both locally (after git cloning the repo) and on myBinder (with the link you provide), the resulting faces_hybrid_and_rotated_2.pth file is just 2.2kB and contains only HTML code which (obviously) triggers an error when trying to unpickle it.

Steps to reproduce the error on myBinder:

  1. run the notebook on myBinder --> results in the error: UnpicklingError: invalid load key, '<'. (Note: of course, since it tries to unpickle some HTML code)

  2. add a line with: !cat weights/faces_hybrid_and_rotated_2.pth

Which results in displaying the content of faces_hybrid_and_rotated_2.pth:


<!DOCTYPE html><html><head><title>Google Drive - Virus scan warning</title><meta http-equiv="content-type" content="text/html; charset=utf-8"/><style nonce="WemtlDkUYYfsC7fLz9V91w">/* Copyright 2022 Google Inc. All Rights Reserved. */
.goog-inline-block{position:relative;display:-moz-inline-box;display:inline-block}* html .goog-inline-block{display:inline}*:first-child+html .goog-inline-block{display:inline}.goog-link-button{position:relative;color:#15c;text-decoration:underline;cursor:pointer}.goog-link-button-disabled{color:#ccc;text-decoration:none;cursor:default}body{color:#222;font:normal 13px/1.4 arial,sans-serif;margin:0}.grecaptcha-badge{visibility:hidden}.uc-main{padding-top:50px;text-align:center}#uc-dl-icon{display:inline-block;margin-top:16px;padding-right:1em;vertical-align:top}#uc-text{display:inline-block;max-width:68ex;text-align:left}.uc-error-caption,.uc-warning-caption{color:#222;font-size:16px}#uc-download-link{text-decoration:none}.uc-name-size a{color:#15c;text-decoration:none}.uc-name-size a:visited{color:#61c;text-decoration:none}.uc-name-size a:active{color:#d14836;text-decoration:none}.uc-footer{color:#777;font-size:11px;padding-bottom:5ex;padding-top:5ex;text-align:center}.uc-footer a{color:#15c}.uc-footer a:visited{color:#61c}.uc-footer a:active{color:#d14836}.uc-footer-divider{color:#ccc;width:100%}</style><link rel="icon" href="null"/></head><body><div class="uc-main"><div id="uc-dl-icon" class="image-container"><div class="drive-sprite-aux-download-file"></div></div><div id="uc-text"><p class="uc-warning-caption">Google Drive can't scan this file for viruses.</p><p class="uc-warning-subcaption"><span class="uc-name-size"><a href="/open?id=1op5_zyH4CWm_JFDdCUPZM4X-A045ETex">faces_hybrid_and_rotated_2.pth</a> (208M)</span> is too large for Google to scan for viruses. Would you still like to download this file?</p><form id="downloadForm" action="https://docs.google.com/uc?export=download&amp;id=1op5_zyH4CWm_JFDdCUPZM4X-A045ETex&amp;confirm=t" method="post"><input type="submit" id="uc-download-link" class="goog-inline-block jfk-button jfk-button-action" value="Download anyway"/></form></div></div><div class="uc-footer"><hr class="uc-footer-divider"></div></body></html>

Note: Manually opening this file in a browser indeed leads to the good link. After manual download, and moving the file to weights/. I could use your program.

Otherwise, your program is great! Congratulations and thank you!

sbersier avatar May 18 '22 09:05 sbersier