Comfy-Org / Comfy-Org/ComfyUI

Feature Request: Automatic Temporary Import and Cleanup of LoRA Files from External Folders

Open
#9,640 0 comments 0 reactions 0 assignees View on GitHub
Feature
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 10h
Merged PRs (30d)
153

Description

### Feature Idea

Add a feature to ComfyUI that allows users to select LoRA files from external folders (such as their Stable Diffusion LoRA directory). When a LoRA is selected, ComfyUI should automatically copy or link the file into its own LoRA directory for use. Once the LoRA is no longer in use, ComfyUI should automatically remove the temporary copy to save disk space and avoid duplicate files. This would eliminate the need for manual copying and cleanup, streamline workflow, and reduce storage usage.

### Existing Solutions

Currently, users must manually copy or symlink LoRAs between Stable Diffusion and ComfyUI folders. No automated solution exists in the core ComfyUI interface. Some users may have custom scripts or use symlinks, but these are not user-friendly or integrated into the UI.

### Other

This feature could optionally use symlinks instead of file copies when supported by the operating system, and provide user prompts to confirm deletion if a LoRA is still in use. It could greatly improve the experience for users who work with multiple UIs and many LoRA files.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.