facebookresearch / facebookresearch/segment-anything

Running yarn && yarn start error

Open
#231 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
54.9k
Forks
6.4k
PR merge metrics
No merged PRs in 30d

Description

I ran the web demo on my laptop, the error pop-up, I have no idea about it since I'm not familiar with JS. need to help from expert.
it's ran under windows 10, I installed the node.js 18.16.0 LTS.
Thanks!

Logging is here
(SAMenv) D:\segment-anything\demo>yarn && yarn start
yarn install v1.22.19
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.55s.
yarn run v1.22.19
$ yarn run start-dev
$ webpack serve --config=configs/webpack/dev.js
[webpack-dev-server] Project is running at:
[webpack-dev-server] Loopback: http://localhost:8080/
[webpack-dev-server] On Your Network (IPv4): http://X.X.X.X:8080/
[webpack-dev-server] Content not from webpack is served from 'D:\segment-anything\demo\public' directory
[webpack-dev-middleware] wait until bundle finished: /

ERROR Failed to compile with 1 errors 21:45:27

error

unable to locate 'D:/segment-anything/demo/model' glob

assets by path *.wasm 36.6 MiB
asset ort-wasm-simd.wasm 9.55 MiB [emitted] [from: node_modules/onnxruntime-web/dist/ort-wasm-simd.wasm] [copied]
asset ort-wasm-simd-threaded.wasm 9.5 MiB [emitted] [from: node_modules/onnxruntime-web/dist/ort-wasm-simd-threaded.wasm] [copied]
asset ort-wasm.wasm 8.8 MiB [emitted] [from: node_modules/onnxruntime-web/dist/ort-wasm.wasm] [copied]
asset ort-wasm-threaded.wasm 8.73 MiB [emitted] [from: node_modules/onnxruntime-web/dist/ort-wasm-threaded.wasm] [copied]
assets by path assets/ 439 KiB
asset assets/data/dogs.jpg 438 KiB [emitted] [from: src/assets/data/dogs.jpg] [copied]
asset assets/index.html 550 bytes [emitted] [from: src/assets/index.html] [copied]
asset assets/scss/App.scss 62 bytes [emitted] [from: src/assets/scss/App.scss] [copied]
asset main.js 2.23 MiB [emitted] (name: main) 1 related asset
asset index.html 587 bytes [emitted]
runtime modules 27.5 KiB 14 modules
modules by path ./node_modules/underscore/modules/*.js 83.1 KiB 161 modules
modules by path ./node_modules/webpack-dev-server/client/ 68.9 KiB 16 modules
modules by path ./src/ 31.5 KiB 11 modules
modules by path ./node_modules/onnxruntime-common/dist/lib/*.js 35.3 KiB 10 modules
modules by path ./node_modules/style-loader/dist/runtime/*.js 5.84 KiB 6 modules
modules by path ./node_modules/webpack/hot/*.js 4.59 KiB 4 modules
modules by path ./node_modules/html-entities/lib/*.js 81.3 KiB 4 modules
modules by path ./node_modules/react-dom/ 1000 KiB 3 modules
modules by path ./node_modules/react/ 85.7 KiB 2 modules
modules by path ./node_modules/scheduler/ 17.3 KiB 2 modules
modules by path ./node_modules/css-loader/dist/runtime/*.js 2.74 KiB 2 modules
+ 6 modules

ERROR in unable to locate 'D:/segment-anything/demo/model' glob

webpack 5.79.0 compiled with 1 error in 6480 ms

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with `yarn && yarn start` in the demo on Windows, then read `configs/webpack/dev.js` and inspect the expected `demo/model` path. Done means the webpack development server compiles without the missing-glob error and the web demo can start.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js, webpack
Domain
build-system, frontend, web-dev
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.