71 Commits

Author SHA1 Message Date
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
Christian Bastian
3b896c8c17 Add Setting to optionally download descriptions as Notes.
- Added more server print statements for saving/moving/deleting files.
- Added slight gap between download inputs.
2024-04-02 23:16:45 -04:00
Christian Bastian
f015767085 Preview image improvements.
- Model Tab grid receives smaller previews from server.
- Attempted to make PIL image `info` serializable for previews.
- Get full size previews from Civitai.
  - Note, the Civitai server may return nothing for the image id. (External bug?)
- Support downloading previews from https://civitai.com/images/
- Lazy Loading in Model Tab.
2024-04-01 00:12:09 -04:00
Christian Bastian
2eba51c668 Remove model type selection in Download Tab.
- Refactored Directory Dropdown update.
2024-03-30 01:58:02 -04:00
Christian Bastian
2578ca181b Human-readable bytes in model info.
- Also fixed typos in JavaScript comments.
2024-03-27 22:33:34 -04:00
Christian Bastian
764321868c Move sampling type in Model Info. 2024-03-25 19:00:12 -04:00
Christian Bastian
a7a0a6b343 Update model info slightly.
- Hide Clip Skip "1" from Model Info.
- Show Dimension/Rank and Alpha. (Nice to reference when evaluating a model's output.)
2024-03-25 18:56:30 -04:00
Christian Bastian
df8fb76f26 Increase supported image extensions
- Supports lower priority `<name>.preview.<extension>` preview names.
  - Note that this means that model names should not be of the format `<name>.preview`, else behavior may be unexpected.
- Removed use of splitext.
- Added checks for valid file type extensions.

- More conformal path accessing for `extension_uri` and `comfyui_model_uri`.
2024-03-24 20:36:16 -04:00
Christian Bastian
dcafca07f0 Show more model metadata in Model Info view.
- In model tab, optionally view embedded thumbnails in safetensors (slow if there are many safetensors without previews).
2024-02-28 19:35:59 -05:00
Christian Bastian
fe67e6981a Add names to html elements.
- Updated README.
2024-02-27 04:27:10 -05:00
Christian Bastian
aa837bc6dc BUG FIX: typo split instead of splitext 2024-02-25 23:20:44 -05:00
Christian Bastian
9a6c7033d8 BUG FIX: Duplicate extension on move. 2024-02-25 23:17:07 -05:00
Christian Bastian
a4dd2f570b Rename model in Model View added.
- Generalized model/move to also support renaming.
2024-02-25 23:02:02 -05:00
Christian Bastian
839b93c9be BUG FIX: Civitai API key token added to a url with existing query string.
- Also updated README.
2024-02-23 02:36:40 -05:00
Christian Bastian
b7747a163a Layout and button changes
- In Model View, moved "Set as Preview" button below radio buttons and disabled when Default selected.
- General CSS layout improvements.
2024-02-22 15:53:58 -05:00
Christian Bastian
d951a508ed Model Previews can now be set in Model View.
- Abstracted out Radio Buttons for Preview selection (mostly clean).
- Added REST API for preview/set and preview/delete.
- Added dateModified to query string so the browser can detect out of date preview images.
- Added image path and dateModified to Model Info payload.
2024-02-22 05:11:38 -05:00
Christian Bastian
c4b6ddd5ca BUG FIX: Save notes with "utf-8" format.
- Bug could cause notes to be erased on save.
2024-02-21 14:37:53 -05:00