-
Notifications
You must be signed in to change notification settings - Fork 183
feat: Add Super Power Lora Loader with enhanced features #583
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- Add trigger word input field for each lora widget - Add text input/output to node for prompt integration - Combine trigger words from enabled loras into text output - Update UI to show trigger word fields with placeholder text - Increase minimum node width to accommodate new fields - Update help text and headers to explain trigger word feature
…template chooser functionality
- Create standalone Super Power Lora Loader with trigger word functionality - Maintain original Power Lora Loader as pristine basic version - Add template save/load capabilities for LoRA sets - Include text input/output for prompt integration with trigger words - Register both variants independently in node system - Add showcase image demonstrating enhanced features Separates functionality while preserving original author's implementation.
… features Supporting Infrastructure: - Add SUPER_POWER_LORA_LOADER constant to node registry - Enhance template chooser with search functionality and delete capability - Add DELETE API endpoint for template management - Revert basic Power Lora Loader to pristine original state Template Management Features: - Interactive template browser with search filtering - One-click template deletion with confirmation - Improved error handling and user feedback - Modern dialog interface with responsive design API Enhancements: - Add deletePowerLoraTemplate() method to rgthree_api - Implement DELETE /rgthree/api/power_lora/templates endpoint - Proper error handling and status responses - Template persistence management Code Separation: - Remove all trigger word functionality from basic loader - Remove template save/load buttons from basic version - Clean revert to match original rgthree implementation exactly - Maintain complete separation between basic and super variants This completes the full implementation with both frontend and backend support for the enhanced Super Power Lora Loader functionality.
|
extremely useful |
…implify output handling
|
非常好,使用起来方便多了 |
|
Super useful, thanks! |
…tions, and settings menu
|
useful, thanks! |
…er Power Lora Loader
|
Thanks for the PR, this is cool stuff. I can tell you've jumped in here and there's a lot of value you've added and I'm excited to see a contribution like this. With that said, I don't want to pull this in as-is. Some of it is actually incompatible, but that's just because I never expected to see a PR like that and don't have a formal how-to-contribute doc; perhaps I should. But the other reason is I've been thinking how to better incorporate some of these features into the regular Power Lora Loader node. The way I see it, there's no reason the normal PLL can't have some of these feature (other than it's easier to an outside contribute to create a new node than hack an existing one, noted). I do like some of the way you've handled trigger words in the node. You can get the trigger words today in rgthree-comfy by using the Power Puter combined with the Power Lora Loader, but I like how you're work here ties it to the workflow node too. Anyway, if you're interested, we can go back and forth on a design and how to incorporate some of the features within the PLL, including some of the work I've been thinking of incorporating. But I'd want to separate it from this PR and break up the work a bit. Or I can take some of your ideas here as inspiration and find time to incorporate it myself if you're not interested if fleshing out a proposal and design. |
|
+1 to something like this - its insanely frustrating to have to trawl the web to find info on a Lora you downloaded ages ago, to find the page down or removed.. when the information is in the metadata for the file! PowerLoraLoader is a great tool, but being able to pull the trigger data out would be fantastic! |
PowerLoraLoader does this already in the Show Info dialog, if possible. AFAICT, this PR doesn’t do anything further. I do owe a breakdown on how we can get some of these other features into the PLL. |
It does yeah, which is handy to get to the civitai page to see example prompts etc. its just a load more clicks & doesn't go with keyboard shortcuts to open / close dialogs (at least I dont think it does?) .. All I need is to quickly check what a trigger word is to update a complex prompt.. Just having the information in front of us is much more convenient. obviously your call:) & just stating a rationale! I did try to get the triggers function working in the puter node (that's hugely powerful - nice work there!) but I'm not sure that's working after the latest comfy updates (asyncio error) |
I refactore the whole thing, now you can just build on Vite, TS, Tailwind whatever. I have made an MD Guide for other LLMs to build the same. I built my own ND Super Lora node and it is super handy and with beautiful UIand UX.
|






Super Power Lora Loader - Enhanced LoRA Management
This PR introduces a new Super Power Lora Loader node that extends the original Power Lora Loader with advanced features while keeping the original implementation completely unchanged.
✨ Features Added
🔗 Trigger Words Integration
📋 Template Management
🎨 Enhanced UI
🏗️ Implementation
Clean Separation
Backend Architecture
RgthreePowerLoraLoader: Original class (pristine)RgthreeSuperPowerLoraLoader: Enhanced class with trigger word functionalityFrontend Components
power_lora_loader.js: Original implementation (untouched)super_power_lora_loader.js: New enhanced implementation📸 Demo
Screenshot showing the enhanced interface with trigger words, template buttons, and text output
🔍 Testing
💡 Benefits
📋 Files Changed
Core Implementation
__init__.py- Register both node variantspy/power_lora_loader.py- Add Super class with text I/Oweb/comfyui/super_power_lora_loader.js- Enhanced frontendSuper Power Lora Loader.png- Demo screenshotSupporting Infrastructure
web/comfyui/constants.js- Add SUPER_POWER_LORA_LOADER constantweb/comfyui/utils_menu.js- Enhanced template chooserweb/common/rgthree_api.js- Template deletion APIpy/server/routes_power_lora.py- DELETE endpointweb/comfyui/power_lora_loader.js- Reverted to original stateThis implementation provides users with choice: keep using the reliable original, or upgrade to the enhanced Super version with trigger words and templates.