rembg icon indicating copy to clipboard operation
rembg copied to clipboard

[BUG] Model download from Google Drive is grabbing the Google warning message

Open jcroucher opened this issue 2 years ago • 1 comments

On running rembg I get this error

magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: invalid load key, '<'.

This is because the model file downloaded is a HTML warning page from Google Drive

Google Drive can't scan this file for viruses. (168M) is too large for Google to scan for viruses. Would you still like to download this file?

Im not sure if/how to automatically confirm so for now the model needed to be manually downloaded and placed in /Users/[USERNAME]/.u2net

https://docs.google.com/uc?export=download&id=1ao1ovG1Qtx4b7EoskHXmi2E9rp5CHLcZ

jcroucher avatar Jul 13 '22 05:07 jcroucher

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Aug 13 '22 02:08 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Aug 27 '22 02:08 github-actions[bot]