Commit Graph

57 Commits

Author SHA1 Message Date
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
Christian Bastian
a72fe681b5 Edit and save notes with model file in model info view.
- If notes are all whitespace, the .txt file is deleted.
2024-02-20 00:56:58 -05:00
Christian Bastian
48d5757d2b Removed redundant information.
- Search path is deconstructed on the server to extract model type. Front and back end changed.
- Show directory even if empty. (Prevented moving a file to an empty directory.)
2024-02-19 20:28:55 -05:00
Christian Bastian
7b98d810ba Move model in Model Info view.
- Added server REST API endpoint for moving a model and associated resources.
2024-02-19 19:15:16 -05:00
Christian Bastian
acc15298bc Added "View Model Info" and "Delete Model" functionality.
NOTE: Some small (but important) changes under the hood that may have broken things. "Quality control" tests were done, but may be have missed things.

- View model info in Model Tab.
- Delete model in Model Info view. (Uses Co
- Reduced model path (search path) in models request and added system separator request.
- Reworked "system path" "search path", "system separator" and "search separator" (a bit messy, maybe needs another rework).
- Updated REST uri structure to be more consistent.
2024-02-17 13:30:58 -05:00
Christian Bastian
8fbbff2175 Remove debug print(). 2024-02-13 15:40:11 -05:00
Christian Bastian
f810f68bbe Add API key to query string. 2024-02-13 15:38:49 -05:00
Christian Bastian
ef64ff1644 Remove index.json and related code from server. 2024-02-13 12:09:44 -05:00
Christian Bastian
241e06e17d Remove download debug. 2024-02-13 01:11:50 -05:00
Christian Bastian
529115b0a4 Set API keys for Civitai & HuggingFace in server_settings.yaml. 2024-02-12 21:46:03 -05:00
Christian Bastian
f8624698c4 Server download enhancements & debugging. 2024-02-12 21:06:53 -05:00
Christian Bastian
4d3be1844b Model tab sort dropdown 2024-02-07 17:00:07 -05:00
Christian Bastian
76f243d1b6 Persistent search setting + directory dropdown cut off bug 2024-01-24 02:00:24 -05:00
Christian Bastian
4637f375f0 Fixed path bug for non-default models in ComfyUI/models + view onnx type 2024-01-22 01:21:30 -05:00
Christian Bastian
1d158ab885 Remove type hints 2024-01-21 07:36:02 -05:00