87 Commits

Author SHA1 Message Date
Hayden
f639e3c795 Support extension gguf (#175) 2025-04-10 13:07:54 +08:00
Hayden
0575124d35 Refactor code structure (#106)
* refactor: rename searcher.py to information.py

* refactor: move the routes into each sub-modules

* refactor: move services's func into sub-modules
2025-01-30 21:06:24 +08:00
Hayden
4df226be82 feat: add deprecated decorator (#105) 2025-01-30 10:04:56 +08:00
Hayden
bfccc6f04f fix: can't change or delete preview (#100) 2025-01-15 16:48:41 +08:00
Hayden
be383ac6e1 fix: potential bug after adding excluded directories (#94)
* Revert "fix: missing parameter (#93)"

This reverts commit c2406a1fd1.

* Revert "feat: add exclude scan model types (#92)"

This reverts commit 40a1a7f43a.

* feat: add exclude scan model types

* fix: potential bug after adding excluded directories
2025-01-14 11:04:41 +08:00
Hayden
c2406a1fd1 fix: missing parameter (#93) 2025-01-13 15:58:11 +08:00
Hayden
40a1a7f43a feat: add exclude scan model types (#92) 2025-01-13 15:15:32 +08:00
Hayden
97b26549ce feat: Remove migration functionality (#89) 2025-01-10 17:11:15 +08:00
Hayden
dc46f498be Split model get list (#74)
Get the model list separately by model type and defer the request.
2024-12-03 14:05:18 +08:00
Hayden
dada903b2b Feature scan extra folders (#65)
* scan extra folders

Other extension may be add models folder in folder_paths

* Fix scanned non-model files

Model file suffix specified
2024-11-28 12:04:23 +08:00
Hayden
e8916307aa Skip hidden model files (#64) 2024-11-28 12:01:55 +08:00
Hayden
8b6c6ebdea Fix some minor bug (#62)
* Fix print info

* Delete empty line
2024-11-25 15:58:18 +08:00
Hayden
659637c6e0 Feature scan info (#53)
* pref: migrate fetch model info to end back

* fix(download): can't select model type

* feat: add scan model info

* feat: add trigger button in setting

* feat: add printing logs

* chore: add explanation of scan model info
2024-11-21 22:04:39 +08:00
hayden
254ad8c597 pref: optimize parameter transmission 2024-11-11 12:08:01 +08:00
hayden
dfae915b77 pref: optimize print logging 2024-11-11 11:51:22 +08:00
hayden
a1e5761dbc feat: adapt to multi user 2024-11-08 11:13:01 +08:00
hayden
7a183464ae fix: cross-platform paths 2024-11-05 16:44:41 +08:00
hayden
bab643ee3d feat: Add web version check 2024-11-02 19:47:17 +08:00
hayden
92c55e04fd pref: Optimize list loading time 2024-10-27 17:54:59 +08:00
hayden
c1747a79f3 refactor: Migrate the project functionality and optimize the code structure 2024-10-26 21:50:44 +08:00
Christian Bastian
d2a9a3a1fa Swapped to using built-in safetensors header loader.
- Build-in loader avoids worst-case slow load using max length.
2024-08-19 09:56:02 -04:00
Christian Bastian
e945be8e3e Added .gguf to known model extensions. 2024-08-19 07:29:58 -04:00
Christian Bastian
116d1210af Added support for .jfif previews. 2024-08-19 05:11:17 -04:00
Christian Bastian
76d6eb587c Added ability to resize model manager when in sidebar by dragging on edges.
- Sidebar vertical and horizontal initial sizes on start up can be changed in settings.
2024-07-27 02:32:08 -04:00
Christian Bastian
01e817fa28 Hide search and clear search buttons in settings. 2024-07-26 01:04:51 -04:00
Christian Bastian
f67cac9887 Add optional autosave notes.
- By default it is disabled because once the model info is closed, the changes are gone.
2024-07-25 05:29:26 -04:00
Christian Bastian
6e43b2fb4c Added default model type on initial load in settings. 2024-07-25 04:13:02 -04:00
Christian Bastian
d17cb5d93a Added button in settings to correct preview image extensions.
- Civitai in the past and present sends incorrect image extension information. (content type? content disposition?)
2024-07-24 16:43:11 -04:00
Christian Bastian
3ca0f500b2 Avoid overwriting preexisting preview images unless user selected "overwrite".
- Fixed invalid exceptions.
2024-07-24 15:53:55 -04:00
Christian Bastian
4f5ba8deec Detect and fix incorrect image extensions when downloading or setting new preview. 2024-07-24 15:28:59 -04:00
Christian Bastian
debb0dd07b Added random tag generator
- Similar to A1111, but with sampler settings and only shuffles comma separated tags rather than each word. Not really needed, but makes the "Tag" tab less empty. Maybe doing something closer to A1111 would be better since it appears to generate the tags with variables counts.
- Disabled (second attempt) label text activating input element. `label > *` is problematic.
2024-07-23 01:45:12 -04:00
Christian Bastian
6b20b36e32 Real-time model search in browse view.
- Activated by default..
- Enabled or disabled in settings.
2024-07-22 16:39:42 -04:00
Christian Bastian
a9371a7030 Setting added to force compact sidebar control.
- Note: It currently requires a window resize or page refresh for the change in setting to take effect.
2024-07-21 22:51:18 -04:00
Christian Bastian
7e5e00ebb6 Added "Load Workflow" button to model thumbnails in model browse view. 2024-07-21 17:11:00 -04:00
Christian Bastian
7828ab1a66 Added download notes checkbox to download tab for better clarity.
- Disabled label element pointer events globally.
- Added missing documented object members to SettingsView.elements.
2024-07-21 14:59:18 -04:00
Christian Bastian
55ddaa19bd Simplify preview thumbnail options. 2024-07-21 02:53:07 -04:00
Christian Bastian
364cb27a99 Setting to swap right and left model preview thumbnail buttons. 2024-07-21 02:42:10 -04:00
Christian Bastian
1a1e6d8ca7 Remove debug print. 2024-07-20 21:44:13 -04:00
Christian Bastian
94b6081e22 Added user setting to select preview image thumbnail type ("JPEG", "WEBP" or "JPEG/WEBP").
- Default is "JPEG/WEBP", which will fall back to "JPEG" if preview image is neither type (e.g. "PNG").
2024-07-20 21:43:56 -04:00
Christian Bastian
534f93e242 Removed preview quality from url query. 2024-07-20 20:46:27 -04:00
Christian Bastian
6c08255555 Update CSS and JavaScript to match preview ratio (3/2).
- Changed thumbnail resampling method to `BOX` when downscaling preview.
2024-07-19 23:56:49 -04:00
Christian Bastian
823903a38f Fix image filename to match actual image type. 2024-07-19 23:17:16 -04:00
Christian Bastian
73f10c7da1 Model grid thumbnail are now jpeg by default.
- TODO: Automatically detect "PNG" files and request jpeg for thumbnails.
2024-07-19 17:29:05 -04:00
Christian Bastian
7be410dabc Attempt to extract bucket_info from ss_datasets. 2024-07-19 03:29:32 -04:00
Christian Bastian
4e37259168 Reorganized model info into tabs.
- Changed save button to floppy disk emoji.
- Fixed search bug where scroll was not resetting to the top.
2024-07-19 01:45:19 -04:00
Christian Bastian
1d83d52bc1 Crop image before Image.thumbnail 2024-07-06 18:25:11 -04:00
Christian Bastian
04f44927d7 Added model size sort. 2024-04-14 00:40:14 -04:00
Christian Bastian
38bfcdf66a Delete note on save when empty print message. 2024-04-07 16:28:24 -04:00
Christian Bastian
d4a339802f Added helpful browser window alerts on expected server model failures.
- UI displays alerts sent by server on expected failures.
- Adjusted top bar CSS layout slightly.
- Fixed invalid filename turning into empty string but bypassing empty string check.
- Server prints download url too.
2024-04-05 20:36:41 -04:00
Christian Bastian
1b5713ab2d Added filename to right-click open preview. 2024-04-03 23:53:56 -04:00