From c551f5c23b094d6ad9400cc83c7ad353f8c4c828 Mon Sep 17 00:00:00 2001 From: Will Miao <13051207myq@gmail.com> Date: Sat, 26 Apr 2025 20:39:24 +0800 Subject: [PATCH] feat: update README with standalone mode instructions and add settings.json.example file --- README.md | 22 ++++++++++++++++------ settings.json.example | 21 +++++++++++++++++++++ 2 files changed, 37 insertions(+), 6 deletions(-) create mode 100644 settings.json.example diff --git a/README.md b/README.md index 15abfc20..82f2b248 100644 --- a/README.md +++ b/README.md @@ -177,14 +177,24 @@ pip install -r requirements.txt You can now run LoRA Manager independently from ComfyUI: -1. **First-time setup**: Launch ComfyUI with LoRA Manager at least once to initialize the necessary path information in the `settings.json` file. -2. **Launch standalone mode**: From your ComfyUI root directory, run: - ```bash - python custom_nodes\comfyui-lora-manager\standalone.py - ``` +1. **For ComfyUI users**: + - Launch ComfyUI with LoRA Manager at least once to initialize the necessary path information in the `settings.json` file. + - From your ComfyUI root directory, run: + ```bash + python custom_nodes\comfyui-lora-manager\standalone.py + ``` + +2. **For non-ComfyUI users**: + - Copy the provided `settings.json.example` file to create a new file named `settings.json` + - Edit `settings.json` to include your correct model folder paths and CivitAI API key + - Run standalone mode: + ```bash + python standalone.py + ``` + 3. Access the interface through your browser as usual. -This standalone mode provides a lighter-weight option for managing your model and recipe collection without needing to run the full ComfyUI environment. +This standalone mode provides a lightweight option for managing your model and recipe collection without needing to run the full ComfyUI environment, making it useful even for users who primarily use other stable diffusion interfaces. --- diff --git a/settings.json.example b/settings.json.example new file mode 100644 index 00000000..f3f032e6 --- /dev/null +++ b/settings.json.example @@ -0,0 +1,21 @@ +{ + "civitai_api_key": "your_civitai_api_key_here", + "show_only_sfw": false, + "folder_paths": { + "loras": [ + "C:/path/to/your/loras_folder", + "C:/path/to/another/loras_folder" + ], + "checkpoints": [ + "C:/path/to/your/checkpoints_folder", + "C:/path/to/another/checkpoints_folder" + ], + "diffusers": [ + "C:/path/to/your/diffusers_folder" + ], + "unet": [ + "C:/path/to/your/unet_folder", + "C:/path/to/your/diffusion_models_folder" + ] + } +}