mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-04 12:13:27 +00:00
* First draft on image labeling * Fixing execution providers for other OSs * Better error handling and shutdown * Working with shallow media processor * bruh * Fix warnings * Now hooked to media processor job * Link desktop app with libonnxruntime to avoid TLS error during startup * Be able to change models on runtime Revert to use labels table instead of tags * A bug on a model-less inference * Show AI labels on Inspector - Change yolo inference to use half precision - Add labels api to core * Remove LD_PRELOAD * Fix race condition on model executor shutdown * Don't load all images in memory moron * Embeed yolo model in prod build - Change yolo model path to new one relative to executable * Disable volume watcher on linux, it was crashing the app - Invalidate labels when they are updated * Rust fmt * Minor changes * Gate onnxruntime linking to the ai-models feature * Add build script to sd-server to handle onnxruntime linking workaround * Move AI stuff to its own crate and normalize deps * Rust fmt * Don't regenerate labels unless asked to * Now blazingly fast * Bad merge * Fix * Fix * Add backend logic to download extra yolo models * Add models api route - Add api call to get available model version - Add api call to change the model version * Improve new model download logic - Add frontend to change image labeler model * Fix new model downloader * Fix model select width * invalidate labels count after media_processor generates a new output * Rename AI crate and first draft on download notifications * fix types --------- Co-authored-by: Vítor Vasconcellos <vasconcellos.dev@gmail.com> Co-authored-by: Brendan Allan <brendonovich@outlook.com>
85 lines
1.8 KiB
JSON
85 lines
1.8 KiB
JSON
{
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"type": "cargo",
|
|
"command": "clippy",
|
|
"problemMatcher": ["$rustc"],
|
|
"group": {
|
|
"kind": "build",
|
|
"isDefault": true
|
|
},
|
|
"label": "rust: cargo clippy",
|
|
"args": ["--all-targets", "--all-features", "--all"]
|
|
},
|
|
{
|
|
"type": "npm",
|
|
"script": "prep",
|
|
"label": "pnpm: prep",
|
|
"group": "none",
|
|
"problemMatcher": ["$rustc"]
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"label": "start",
|
|
"command": "sh",
|
|
"args": ["-c", "'pnpm i && pnpm prep'"],
|
|
"problemMatcher": ["$tsc-watch", "$rustc"]
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"label": "ui:dev",
|
|
"problemMatcher": {
|
|
"base": "$tsc-watch",
|
|
"background": {
|
|
"activeOnStart": true,
|
|
"beginsPattern": "VITE v",
|
|
"endsPattern": "http://localhost:8001/"
|
|
}
|
|
},
|
|
"isBackground": true,
|
|
"command": "pnpm",
|
|
"args": ["desktop", "vite", "--clearScreen=false", "--mode=development"],
|
|
"runOptions": {
|
|
"instanceLimit": 1
|
|
}
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"label": "ui:build",
|
|
"problemMatcher": "$tsc",
|
|
"command": "pnpm",
|
|
"args": ["desktop", "vite", "build"]
|
|
},
|
|
{
|
|
"type": "cargo",
|
|
"command": "run",
|
|
"args": [
|
|
"--manifest-path=./apps/desktop/src-tauri/Cargo.toml",
|
|
"--no-default-features",
|
|
"--features=ai-models"
|
|
],
|
|
"env": {
|
|
"RUST_BACKTRACE": "short"
|
|
// "RUST_LOG": "sd_core::invalidate-query=trace"
|
|
},
|
|
"problemMatcher": ["$rustc"],
|
|
"group": "build",
|
|
"label": "rust: run spacedrive",
|
|
"dependsOn": ["ui:dev"]
|
|
},
|
|
{
|
|
"type": "cargo",
|
|
"command": "run",
|
|
"args": ["--manifest-path=./apps/desktop/src-tauri/Cargo.toml", "--release"],
|
|
"env": {
|
|
"RUST_BACKTRACE": "short"
|
|
},
|
|
"problemMatcher": ["$rustc"],
|
|
"group": "build",
|
|
"label": "rust: run spacedrive release",
|
|
"dependsOn": ["ui:build"]
|
|
}
|
|
]
|
|
}
|