Comments (2)
I run into the same issue.
While trying to download the U2-Net model to a server, I encountered an error that seems to be related to directory permissions or non-existence of the necessary directory. The server does not seem to allow the creation of a folder for saving the downloaded files. Here is the error log for reference:
U2-Net model downloading...
Unhandled Promise Rejection {"errorType":"Runtime.UnhandledPromiseRejection","errorMessage":"Error: ENOENT: no such file or directory, mkdir '/home/sbx_user1051/.u2net'","reason":{"errorType":"Error","errorMessage":"ENOENT: no such file or directory, mkdir '/home/sbx_user1051/.u2net'","code":"ENOENT","errno":-2,"syscall":"mkdir","path":"/home/sbx_user1051/.u2net","stack":["Error: ENOENT: no such file or directory, mkdir '/home/sbx_user1051/.u2net'"]},"promise":{},"stack":["Runtime.UnhandledPromiseRejection: Error: ENOENT: no such file or directory, mkdir '/home/sbx_user1051/.u2net'"," at process.<anonymous> (file:///var/runtime/index.mjs:1250:17)"," at process.emit (node:events:526:35)"," at emit (node:internal/process/promises:149:20)"," at processPromiseRejections (node:internal/process/promises:283:27)"," at process.processTicksAndRejections (node:internal/process/task_queues:96:32)"]}
Unknown application error occurred
Runtime.Unknown
Would it be possible to have a version of the application that loads the model locally to bypass this issue? This way, we could avoid the directory creation and file saving issues that seem to be happening when deploying on Vercel.
Thank you for any guidance or solution you can provide!
from rembg-node.
from rembg-node.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rembg-node.