ComfyUI > Nodes > ComfyUI ModelScope API Node > ModelScope-LoRA 预设管理

ComfyUI Node: ModelScope-LoRA 预设管理

Class Name

ModelScopeLoraPresetNode

Category
ModelScopeAPI/LoRA
Author
hujuying (Account age: 1426days)
Extension
ComfyUI ModelScope API Node
Latest Updated
2025-12-31
Github Stars
0.06K

How to Install ComfyUI ModelScope API Node

Install this extension via the ComfyUI Manager by searching for ComfyUI ModelScope API Node
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI ModelScope API Node in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

ModelScope-LoRA 预设管理 Description

Manages LoRA presets in ModelScope API, enabling efficient organization and application for AI art.

ModelScope-LoRA 预设管理:

The ModelScopeLoraPresetNode is designed to manage LoRA (Low-Rank Adaptation) presets within the ModelScope API environment. This node allows you to view, add, delete, and save LoRA presets, which are configurations that define how LoRA models are applied to tasks. By using this node, you can efficiently organize and manipulate your LoRA presets, ensuring that you have the right configurations for your AI art projects. The node's primary function is to streamline the management of these presets, making it easier for you to apply different LoRA models with specific weights to achieve desired artistic effects. This capability is particularly beneficial for AI artists who need to experiment with various model configurations to enhance their creative outputs.

ModelScope-LoRA 预设管理 Input Parameters:

action

The action parameter determines the operation you wish to perform on the LoRA presets. It offers four options: "查看预设" (View Presets), "添加预设" (Add Preset), "删除预设" (Delete Preset), and "保存预设" (Save Preset). The default action is "查看预设". This parameter is crucial as it dictates the node's behavior, allowing you to either inspect existing presets, introduce new ones, remove unwanted presets, or update existing configurations.

preset_name

The preset_name parameter is a string that specifies the name of the LoRA preset you are working with. Its default value is "自定义LoRA" (Custom LoRA). This parameter is essential when adding or modifying presets, as it identifies the specific preset you wish to create or update. It ensures that each preset has a unique and recognizable name for easy management.

lora_model_id

The lora_model_id parameter is a string that represents the identifier of the LoRA model associated with the preset. It has a default value of an empty string and serves as a placeholder for model IDs, such as "qiyuanai/TikTok_Xiaohongshu_career_line_beauty_v1". This parameter is vital for linking a specific LoRA model to a preset, enabling the application of the model's unique characteristics to your projects.

default_weight

The default_weight parameter is a float that defines the default weight of the LoRA model within the preset. It ranges from 0.0 to 2.0, with a default value of 0.8 and a step of 0.1. This parameter influences the intensity of the LoRA model's effect when applied, allowing you to fine-tune the model's impact on your artistic outputs.

target_preset

The target_preset parameter specifies the target preset for actions such as viewing, deleting, or saving. It defaults to the first available preset or "无LoRA" (No LoRA) if no presets exist. This parameter is crucial for identifying which preset you want to interact with, ensuring that the correct configuration is modified or displayed.

ModelScope-LoRA 预设管理 Output Parameters:

lora_model_id

The lora_model_id output provides the identifier of the LoRA model associated with the preset. This output is essential for confirming the model being used or modified, ensuring that the correct model is applied to your tasks.

lora_weight

The lora_weight output indicates the weight of the LoRA model within the preset. This value is crucial for understanding the intensity of the model's effect, allowing you to assess and adjust the impact on your creative projects.

preset_info

The preset_info output delivers information about the current state of the LoRA presets, such as the number of presets available or confirmation messages for actions performed. This output is valuable for keeping track of your preset configurations and ensuring that your management actions have been successfully executed.

ModelScope-LoRA 预设管理 Usage Tips:

  • Regularly review your LoRA presets using the "查看预设" action to ensure you are working with the most up-to-date configurations.
  • When adding new presets, ensure that the preset_name is unique and descriptive to avoid confusion and facilitate easy identification.
  • Use the default_weight parameter to experiment with different model intensities, helping you achieve the desired artistic effects.

ModelScope-LoRA 预设管理 Common Errors and Solutions:

"预设名称不能为空"

  • Explanation: This error occurs when attempting to add a preset without providing a name.
  • Solution: Ensure that the preset_name parameter is filled with a valid, non-empty string before adding a new preset.

"已存在名为 <preset_name> 的预设"

  • Explanation: This error indicates that a preset with the specified name already exists.
  • Solution: Choose a different, unique name for the new preset to avoid conflicts with existing presets.

"未找到预设: <target_preset>"

  • Explanation: This error arises when trying to delete or save a preset that does not exist.
  • Solution: Verify that the target_preset parameter matches an existing preset name before attempting to delete or save changes.

"不能删除默认的无LoRA预设"

  • Explanation: This error occurs when trying to delete the default "无LoRA" preset.
  • Solution: Avoid attempting to delete the default preset, as it is a necessary part of the system's configuration.

ModelScope-LoRA 预设管理 Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI ModelScope API Node
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

ModelScope-LoRA 预设管理