facebookresearch / facebookresearch/segment-anything
Configuration on demo app
- Dominant language
- Jupyter Notebook
- Stars
- 54.9k
- Forks
- 6.4k
- PR merge metrics
- No merged PRs in 30d
Description
I see this config in configs/webpack/common.js
```
new CopyPlugin({
patterns: [
{
from: "node_modules/onnxruntime-web/dist/*.wasm",
to: "[name][ext]",
},
{
from: "src/model",
to: "model",
},
{
from: "src/assets",
to: "assets",
},
],
}),
```
Do you have any reason for copy .wasm file from node_module?
Another thing I'm concern is in dev.js file, we have this config for dev server
```
headers: {
"Cross-Origin-Opener-Policy": "same-origin",
"Cross-Origin-Embedder-Policy": "credentialless",
},
```
The comment explain that it used to support multithreading for ONNX.
I wonder why we don't need this config for prod, 'cause I don't see this config in prod.js
Contributor guide
Assessment
This issue has not been assessed yet.