Code Monkey home page Code Monkey logo

Comments (2)

Typogram avatar Typogram commented on May 18, 2024

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.

konanleesoobin avatar konanleesoobin commented on May 18, 2024

#5 (comment)

from rembg-node.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.