Christian Bastian
c35cb757fa
Set model previews from model info view.
2024-09-23 00:59:48 -04:00
Christian Bastian
3b8735afef
Added "Download Model Info" button to model info view.
...
- Always rehashes model (slow for big files).
- Refactored model info download into function on server.
2024-09-22 21:13:54 -04:00
Christian Bastian
eb59ae93e0
Console warning about fixing model info issue.
2024-09-21 19:42:34 -04:00
Christian Bastian
7a49b548a2
Fixed note parse bug.
...
- Avoid adding empty string to list of activation text.
2024-09-21 18:33:52 -04:00
Christian Bastian
4757978164
Added model info scan.
...
- Tries to download and save model info, notes and url files.
2024-09-21 18:05:14 -04:00
Christian Bastian
5dcf90ca9a
Fixed bug.
2024-09-12 13:51:55 -04:00
Christian Bastian
c87183f98b
Added a bit more safety checks before saving url.
2024-09-12 13:41:29 -04:00
Christian Bastian
15946599fb
Fixed bug where model download link was saved instead of model page link.
2024-09-12 13:26:29 -04:00
Christian Bastian
76c0ce817b
Save model webpage links beside model.
2024-09-12 04:32:51 -04:00
Christian Bastian
408f5887cd
Added cache and use of model metadata in json file. (First load will be slow.)
2024-09-12 01:42:13 -04:00
Christian Bastian
fa5e7dfcdc
Download json file with only relevant model info.
...
- Simplified web search to avoid extra query.
2024-09-11 17:55:48 -04:00
Christian Bastian
f15c5f9071
Save model info in json file beside model.
2024-09-11 17:34:29 -04:00
Christian Bastian
35878d8514
Added dynamic routing to REST API: preview/get/{path} and model/info/{path}.
...
- Fixed issue interacting with Imagus stripping out query parameters and getting invalid preview url. Fixed by using dynamic routing.
- Changed return format of preview string to no longer encode the uri on the server. There were issues with how python's urllib.parse.quote and .quote_plus functions interacted with slash and space characters.
2024-09-10 00:30:44 -04:00
Christian Bastian
ce93156460
Enable debug statement.
2024-09-08 04:37:41 -04:00
Christian Bastian
4831a4374b
Added raise error on get web-url when path is empty.
2024-09-08 04:36:00 -04:00
Christian Bastian
1c83e1e028
Remove type hint
2024-09-07 21:00:15 -04:00
Christian Bastian
b6562851e1
Undo
2024-09-07 20:47:20 -04:00
Christian Bastian
944071e966
Tweak path.
2024-09-07 20:46:27 -04:00
Christian Bastian
b16c2e853f
Debug statement for invalid preview.
2024-09-07 19:48:28 -04:00
Christian Bastian
b9e6d3af0b
Added debug in JS for preview.
2024-09-07 17:18:31 -04:00
Christian Bastian
84b1e60df0
Added check for missing preview uri.
2024-09-07 17:08:44 -04:00
Christian Bastian
155a1d5e13
Minor change to trigger word formatting.
2024-09-07 03:37:23 -04:00
Christian Bastian
25d52dda6d
Added buttons to search the web for notes and open url in new tab.
...
- See here for discussion: https://github.com/hayden-fr/ComfyUI-Model-Manager/issues/18
- Added python requirement.
2024-09-07 03:28:53 -04:00
Christian Bastian
92f8c632df
Fix issue with Civitai Content-Type in API header.
...
- https://github.com/hayden-fr/ComfyUI-Model-Manager/issues/18
2024-09-05 23:15:26 -04: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