mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-06 23:43:32 +00:00
7c90bcb95b
* 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>
91 lines
2 KiB
INI
91 lines
2 KiB
INI
# EditorConfig is awesome: http://EditorConfig.org
|
|
|
|
# https://github.com/jokeyrhyme/standard-editorconfig
|
|
|
|
# top-most EditorConfig file
|
|
root = true
|
|
|
|
# defaults
|
|
[*]
|
|
charset = utf-8
|
|
indent_size = 2
|
|
end_of_line = lf
|
|
indent_style = tab
|
|
insert_final_newline = true
|
|
trim_trailing_whitespace = true
|
|
|
|
# BATS: https://github.com/bats-core/bats-core
|
|
# https://github.com/bats-core/bats-core/master/.editorconfig
|
|
[*.bats]
|
|
insert_final_newline = true
|
|
max_line_length = 80
|
|
trim_trailing_whitespace = true
|
|
|
|
# CSS
|
|
# https://google.github.io/styleguide/htmlcssguide.xml#General_Formatting_Rules
|
|
# http://cssguidelin.es/#syntax-and-formatting
|
|
[*.css]
|
|
trim_trailing_whitespace = true
|
|
|
|
# HTML
|
|
# https://google.github.io/styleguide/htmlcssguide.xml#General_Formatting_Rules
|
|
[*.{htm,html}]
|
|
trim_trailing_whitespace = true
|
|
|
|
# JavaScript, JSON, JSX, JavaScript Modules, TypeScript
|
|
# https://github.com/feross/standard
|
|
# https://prettier.io
|
|
[*.{cjs,js,json,jsx,mjs,ts,tsx}]
|
|
indent_size = 4
|
|
|
|
# Kotlin
|
|
# https://android.github.io/kotlin-guides/style.html#indentation
|
|
[*.{kt,kts}]
|
|
indent_size = 4
|
|
|
|
# Python
|
|
# https://www.python.org/dev/peps/pep-0008/#code-lay-out
|
|
[*.py]
|
|
indent_size = 4
|
|
|
|
# Rust
|
|
# https://github.com/rust-lang/rust/blob/master/src/doc/style/style/whitespace.md
|
|
[*.rs]
|
|
indent_size = 4
|
|
insert_final_newline = false
|
|
trim_trailing_whitespace = true
|
|
|
|
# SQL
|
|
# https://www.sqlstyle.guide/
|
|
[*.sql]
|
|
indent_size = 4
|
|
indent_style = space
|
|
|
|
# Prisma
|
|
# https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-schema/data-model#formatting
|
|
[*.prisma]
|
|
indent_size = 2
|
|
indent_style = space
|
|
|
|
# YAML
|
|
# http://yaml.org/spec/1.2/2009-07-21/spec.html#id2576668
|
|
[*.{yaml,yml}]
|
|
indent_style = space
|
|
|
|
# Shell
|
|
# https://google.github.io/styleguide/shell.xml#Indentation
|
|
[*.{bash,sh,zsh}]
|
|
indent_style = space
|
|
|
|
# PowerShell
|
|
# https://poshcode.gitbook.io/powershell-practice-and-style/style-guide/code-layout-and-formatting
|
|
[*.{ps1,psd1,psm1}]
|
|
indent_size = 4
|
|
indent_style = space
|
|
|
|
# Swift
|
|
# https://github.com/apple/swift-format/blob/main/Documentation/Configuration.md#example
|
|
[*.swift]
|
|
indent_size = 4
|
|
indent_style = space
|