Will Miao
47ce0d0fe2
fix(model_scanner): comment out fetch missing metadata call to prevent potential issues
2025-09-10 22:08:44 +08:00
Will Miao
6fd74952b7
Refactor metadata handling to use unified provider system
...
- Replaced direct usage of Civitai client with a fallback metadata provider across all recipe parsers.
- Updated metadata service to improve initialization and error handling.
- Enhanced download manager to utilize a downloader service for file operations.
- Improved recipe scanner to fetch model information through the new metadata provider.
- Updated utility functions to streamline image downloading and processing.
- Added comprehensive logging and error handling for better debugging and reliability.
- Introduced `get_default_metadata_provider()` for simplified access to the default provider.
- Ensured backward compatibility with existing APIs and workflows.
2025-09-09 20:57:45 +08:00
Will Miao
c2a8508513
feat: Add get_preview_extension function to retrieve complete preview file extensions
2025-08-26 10:19:17 +08:00
Will Miao
1f37ffb105
feat: Refactor unique filename generation to use a hash provider for improved flexibility
2025-08-25 14:52:44 +08:00
Will Miao
919fed05c5
feat: Enhance model moving functionality with improved error handling and unique filename generation
2025-08-25 13:08:35 +08:00
Will Miao
623c28bfc3
feat: Remove backup creation from metadata saving functions for streamlined operations
2025-08-24 22:30:53 +08:00
Will Miao
5d7a1dcde5
refactor: Comment out duplicate filename logging in ModelScanner for cleaner cache build process, fixes #365
2025-08-18 16:46:16 +08:00
Will Miao
c9289ed2dc
fix: improve duplicate filename handling and logging in ModelScanner and ModelHashIndex
2025-08-11 17:13:21 +08:00
Will Miao
96517cbdef
fix: update model_id and model_version_id handling across various services for improved flexibility
2025-08-11 15:31:49 +08:00
Will Miao
d8e13de096
feat: enhance metadata adjustment in CheckpointScanner and ModelScanner for improved model type handling
2025-08-04 17:06:46 +08:00
Will Miao
e8a30088ef
refactor: streamline model scanning by removing redundant file processing method and enhancing directory scanning logic
2025-08-04 15:49:50 +08:00
Will Miao
dda9eb4d7c
refactor: Remove MessagePack dependency and related cache management code
2025-07-24 19:30:47 +08:00
Will Miao
e8ccdabe6c
refactor: Enhance sorting functionality and UI for model selection, including legacy format conversion
2025-07-24 09:26:15 +08:00
Will Miao
bf9aa9356b
refactor: Update model retrieval methods in RecipeRoutes and streamline CheckpointScanner and LoraScanner initialization
2025-07-23 23:27:18 +08:00
Will Miao
ee609e8eac
Revert "feat: Implement check for missing creator in model metadata"
...
This reverts commit 0184dfd7eb .
2025-07-23 06:33:00 +08:00
Will Miao
0184dfd7eb
feat: Implement check for missing creator in model metadata
2025-07-22 20:14:39 +08:00
Will Miao
c692713ffb
refactor: Simplify model version existence checks and enhance version retrieval methods in scanners
2025-07-09 10:26:03 +08:00
Will Miao
2ee057e19b
feat: update metadata saving to ensure backup creation and support nested civitai structure
2025-06-25 11:50:10 +08:00
Will Miao
605a06317b
feat: Enhance media handling by adding NSFW level support and improving preview image management
2025-06-19 15:19:24 +08:00
Will Miao
3c047bee58
Refactor example images handling by introducing migration logic, updating metadata structure, and enhancing image loading in the UI
2025-06-18 17:14:49 +08:00
Will Miao
afa5a42f5a
Refactor metadata handling by introducing MetadataManager for centralized operations and improving error handling
2025-06-17 21:01:48 +08:00
Will Miao
9e553bb87b
Refactor card update functions to unify model and Lora card handling; remove unused metadata path update logic. See #228
2025-06-14 09:39:59 +08:00
Will Miao
68fdb14cd6
Remove unused lora monitor retrieval and ignore path logic from ApiRoutes, DownloadManager, and ModelScanner. Fixes #226
2025-06-13 05:46:22 +08:00
Will Miao
eb01ad3af9
Refactor model response inclusion to only include groups with multiple models; update model removal logic to accept hash value. See #221
2025-06-11 19:52:44 +08:00
Will Miao
e81e96f0ab
Refactor file monitoring and model scanning; remove unused monitors and streamline model file deletion process.
2025-06-11 17:02:10 +08:00
Will Miao
06d5bd259c
Refactor model file processing in ModelScanner to determine root paths and enhance error logging for missing roots.
2025-06-11 15:53:35 +08:00
Will Miao
3b51886927
Add cache file control to ModelScanner; implement flags to enable/disable cache usage and clear cache files accordingly. See #222
2025-06-11 09:17:10 +08:00
Will Miao
9d1b357e64
Enhance cache validation logic: add logging for version and model type mismatches, and relax directory structure checks to improve cache validity.
2025-06-04 20:47:14 +08:00
Will Miao
9fc2fb4d17
Enhance model caching and exclusion functionality: update cache version, add excluded models to cache data, and ensure cache is saved to disk after model exclusion and deletion.
2025-06-04 18:38:45 +08:00
Will Miao
7545312229
Add bulk delete endpoint for checkpoints and enhance ModelDuplicatesManager for better handling of model types
2025-06-02 08:54:31 +08:00
Will Miao
26f9779fbf
Add bulk delete functionality for loras and implement model duplicates management. See #198
...
- Introduced a new API endpoint for bulk deleting loras.
- Added ModelDuplicatesManager to handle duplicate models for loras and checkpoints.
- Implemented UI components for displaying duplicates and managing selections.
- Enhanced controls with a button for finding duplicates.
- Updated templates to include a duplicates banner and associated actions.
2025-06-02 08:08:45 +08:00
Will Miao
0bd62eef3a
Add endpoints for finding duplicate loras and filename conflicts; implement tracking for duplicates in ModelHashIndex and update ModelScanner to handle new data structures.
2025-05-31 20:50:51 +08:00
Will Miao
c62206a157
Add preprocessing for MessagePack serialization to handle large integers. See #201
2025-05-30 10:55:48 +08:00
Will Miao
68568073ec
Refactor model caching logic to streamline adding models and ensure disk persistence
2025-05-30 07:34:39 +08:00
Will Miao
67acd9fd2c
Relax cache validation by removing strict modification time checks, allowing users to refresh the cache as needed.
2025-05-29 20:58:06 +08:00
Will Miao
f7be5c8d25
Change log level to info for cache save operation and ensure cache is saved to disk after updating preview URL
2025-05-29 20:09:58 +08:00
Will Miao
ddf132bd78
Add cache management feature: implement clear cache API and modal confirmation
2025-05-29 14:36:13 +08:00
Will Miao
afb012029f
Enhance get_cached_data method: improve cache rebuilding logic and ensure cache is saved after initialization
2025-05-29 08:50:17 +08:00
Will Miao
651e14c8c3
Enhance get_cached_data method: add rebuild_cache option for improved cache management
2025-05-29 08:36:18 +08:00
Will Miao
e7c626eb5f
Add MessagePack support for efficient cache serialization and update dependencies
2025-05-28 22:30:06 +08:00
Will Miao
6e5f333364
Enhance model file moving logic: support moving associated files and handle metadata paths
2025-05-27 05:41:39 +08:00
Will Miao
ea834f3de6
Revert "Enhance metadata processing in ModelScanner: prevent intermediate writes, restore missing civitai data, and ensure base_model consistency. #185 "
...
This reverts commit 99b36442bb .
2025-05-19 21:39:31 +08:00
Will Miao
99b36442bb
Enhance metadata processing in ModelScanner: prevent intermediate writes, restore missing civitai data, and ensure base_model consistency. #185
2025-05-14 19:16:58 +08:00
Will Miao
ec1c92a714
feat: add model exclusion functionality with new API endpoints and metadata handling
2025-05-02 22:36:50 +08:00
Will Miao
5cd5a82ddc
feat: add creator information to model metadata handling
2025-05-01 15:56:57 +08:00
Will Miao
3de31cd06a
feat: Add functionality to move civitai.info file during model relocation
2025-04-25 09:41:23 +08:00
Will Miao
1faa70fc77
feat: Implement filename-based hash retrieval in LoraScanner and ModelScanner for improved compatibility
2025-04-19 21:12:26 +08:00
Will Miao
30d7c007de
fix: Correct metadata restoration logic to ensure file info is fetched when metadata is missing
2025-04-19 20:51:23 +08:00
Will Miao
f54f6a4402
feat: Enhance metadata handling by restoring missing civitai data and extracting tags and descriptions from version info
2025-04-19 11:35:42 +08:00
Will Miao
0b11e6e6d0
feat: Enhance initialization component with progress tracking and UI improvements
2025-04-13 12:58:38 +08:00