Skip to content
This repository was archived by the owner on Feb 28, 2024. It is now read-only.

Failed to download gdrive link #5

Open
sohailskills opened this issue Feb 6, 2024 · 3 comments
Open

Failed to download gdrive link #5

sohailskills opened this issue Feb 6, 2024 · 3 comments

Comments

@sohailskills
Copy link

/home/Desktop/my_project/back-end/node_modules/rembg-node/dist/gdown.js:5
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
^
Error: Failed to download gdrive link
at /home/Desktop/my_project/back-end/node_modules/rembg-node/dist/gdown.js:84:23
at Generator.next ()
at fulfilled (/home/Desktop/my_project/back-end/node_modules/rembg-node/dist/gdown.js:5:58)
at processTicksAndRejections (node:internal/process/task_queues:95:5)

@Mustafa-Aswadi
Copy link

Mustafa-Aswadi commented Feb 19, 2024

same problem.
@makidoll

@konanleesoobin
Copy link

  1. download https://drive.usercontent.google.com/download?id=1tCU5MM1LhRgGou5OpmpjBQbSrYIUoYab
  2. mkdir home directory > .u2net
  3. mv download u2net.onnx .u2net

@favger
Copy link

favger commented Feb 28, 2024

The u2net.onnx model is used to make the image transparent. Since this file is 170MB in size, I guess the developer didn't put it in the repo. There is a code in the code that tries to download this file from a Google Drive link, but I think that code is not working right now.

You can solve the problem this way;

Download the model: https://github.com/danielgatis/rembg/releases/download/v0.0.0/u2net.onnx
change: path.resolve("u2net.onnx") in src/index.ts: line 96

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants