Pyside6 dataset tool including lmstudio#1599
Open
CrunchyBanana1 wants to merge 12 commits into
Open
Conversation
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Adds load_lmstudio_captioning_model + caption_current_image to CaptionUIController and a create_captions_lmstudio method alongside the existing local-model create_captions (kept intact for the Ctk dialog). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Thread a cooperative is_cancelled check through caption_folder/caption_images (checked before each image) and wire a Cancel button in the LM Studio batch caption dialog that stops the run after the current image. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Attribution to Kazi Shashwata Rahman (shashwata2020), MIT License, whose tool the LM Studio request flow is adapted from. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Reset the draw origin to the click point on mouse-press so the first dab is a dot rather than a line connecting to where the last stroke ended. Dragging still paints a continuous line. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Draw a circle overlay that follows the cursor and matches the current brush radius (adjustable via mouse wheel), plus a crosshair pointer, so the brush footprint is visible before painting. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Enter-to-save was bound to the prompt field's returnPressed, so it did nothing while the canvas had focus (e.g. right after painting a mask). Make Return and keypad Enter window-level shortcuts and flash a "saved" confirmation in the title bar. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Bracket keys shrink/grow the brush (alongside the mouse wheel), handled in keyPressEvent so typing brackets into the caption box still works. The canvas takes click-focus so the keys apply once painting. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ports the dataset tool to the new PySide6 UI and replaces the local caption models with an LM Studio (OpenAI-compatible API) backend.
Included
LMStudioCaptionModel, a single-image "Caption Image" button, and a batch dialog (server URL, system/user prompts, modes, progress, cancel)Preview

Credits
The LM Studio captioning flow is adapted from LM_Studio_Image_Captioner by Kazi Shashwata Rahman (@shashwata2020), used under the MIT License. Thanks!