mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-22 23:37:02 +08:00
Add lora.
This commit is contained in:
parent
1cac373d8f
commit
2faa9f7f51
126
.github/workflows/json_examples/workflow_lora_api.json
vendored
Normal file
126
.github/workflows/json_examples/workflow_lora_api.json
vendored
Normal file
@ -0,0 +1,126 @@
|
|||||||
|
{
|
||||||
|
"3": {
|
||||||
|
"inputs": {
|
||||||
|
"seed": 851616030078638,
|
||||||
|
"steps": 20,
|
||||||
|
"cfg": 8,
|
||||||
|
"sampler_name": "euler",
|
||||||
|
"scheduler": "normal",
|
||||||
|
"denoise": 1,
|
||||||
|
"model": [
|
||||||
|
"10",
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"positive": [
|
||||||
|
"6",
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"negative": [
|
||||||
|
"7",
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"latent_image": [
|
||||||
|
"5",
|
||||||
|
0
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"class_type": "KSampler",
|
||||||
|
"_meta": {
|
||||||
|
"title": "KSampler"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"4": {
|
||||||
|
"inputs": {
|
||||||
|
"ckpt_name": "v1-5-pruned-emaonly.ckpt"
|
||||||
|
},
|
||||||
|
"class_type": "CheckpointLoaderSimple",
|
||||||
|
"_meta": {
|
||||||
|
"title": "Load Checkpoint"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"5": {
|
||||||
|
"inputs": {
|
||||||
|
"width": 512,
|
||||||
|
"height": 512,
|
||||||
|
"batch_size": 1
|
||||||
|
},
|
||||||
|
"class_type": "EmptyLatentImage",
|
||||||
|
"_meta": {
|
||||||
|
"title": "Empty Latent Image"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"6": {
|
||||||
|
"inputs": {
|
||||||
|
"text": "masterpiece best quality girl",
|
||||||
|
"clip": [
|
||||||
|
"10",
|
||||||
|
1
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"class_type": "CLIPTextEncode",
|
||||||
|
"_meta": {
|
||||||
|
"title": "CLIP Text Encode (Prompt)"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"7": {
|
||||||
|
"inputs": {
|
||||||
|
"text": "bad hands",
|
||||||
|
"clip": [
|
||||||
|
"10",
|
||||||
|
1
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"class_type": "CLIPTextEncode",
|
||||||
|
"_meta": {
|
||||||
|
"title": "CLIP Text Encode (Prompt)"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"8": {
|
||||||
|
"inputs": {
|
||||||
|
"samples": [
|
||||||
|
"3",
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"vae": [
|
||||||
|
"4",
|
||||||
|
2
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"class_type": "VAEDecode",
|
||||||
|
"_meta": {
|
||||||
|
"title": "VAE Decode"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"9": {
|
||||||
|
"inputs": {
|
||||||
|
"filename_prefix": "ComfyUI",
|
||||||
|
"images": [
|
||||||
|
"8",
|
||||||
|
0
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"class_type": "SaveImage",
|
||||||
|
"_meta": {
|
||||||
|
"title": "Save Image"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"10": {
|
||||||
|
"inputs": {
|
||||||
|
"lora_name": "epiNoiseoffset_v2.safetensors",
|
||||||
|
"strength_model": 1,
|
||||||
|
"strength_clip": 1,
|
||||||
|
"model": [
|
||||||
|
"4",
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"clip": [
|
||||||
|
"4",
|
||||||
|
1
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"class_type": "LoraLoader",
|
||||||
|
"_meta": {
|
||||||
|
"title": "Load LoRA"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
26
.github/workflows/linux-os-test.yml
vendored
26
.github/workflows/linux-os-test.yml
vendored
@ -2,7 +2,7 @@ name: Test ComfyUI Linux with Default Workflow
|
|||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- master
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- 'tests/**'
|
- 'tests/**'
|
||||||
- 'tests-ui/**'
|
- 'tests-ui/**'
|
||||||
@ -13,11 +13,16 @@ on:
|
|||||||
- 'tests-ui/**'
|
- 'tests-ui/**'
|
||||||
- '.github/workflows/mac-os-test.yml'
|
- '.github/workflows/mac-os-test.yml'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
runTests:
|
||||||
|
description: 'Specify which tests to run (e.g., "All", "Lora", "Default")'
|
||||||
|
required: true
|
||||||
|
default: 'All' # Default to running all tests
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test-action:
|
test-default-workflow:
|
||||||
runs-on: nvidia-tesla-t4
|
runs-on: [self-hosted, Linux, nvidia-tesla-t4]
|
||||||
|
if: ${{ github.event.inputs.runTests == 'All' }} || ${{ github.event.inputs.runTests == 'Default' }}
|
||||||
steps:
|
steps:
|
||||||
- name: Use ComfyUI GitHub Action
|
- name: Use ComfyUI GitHub Action
|
||||||
uses: drip-art/comfy-action@main
|
uses: drip-art/comfy-action@main
|
||||||
@ -28,3 +33,16 @@ jobs:
|
|||||||
models-json: '{"v1-5-pruned-emaonly.ckpt": {"url": "https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.ckpt", "directory": "checkpoints"}}'
|
models-json: '{"v1-5-pruned-emaonly.ckpt": {"url": "https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.ckpt", "directory": "checkpoints"}}'
|
||||||
workflow_json_path: '.github/workflows/json_examples/workflow_api.json'
|
workflow_json_path: '.github/workflows/json_examples/workflow_api.json'
|
||||||
timeout: 50
|
timeout: 50
|
||||||
|
test-lora-workflow:
|
||||||
|
runs-on: [self-hosted, Linux, nvidia-tesla-t4]
|
||||||
|
if: ${{ github.event.inputs.runTests == 'All' }} || ${{ github.event.inputs.runTests == 'Lora' }}
|
||||||
|
steps:
|
||||||
|
- name: Use ComfyUI GitHub Action
|
||||||
|
uses: drip-art/comfy-action@main
|
||||||
|
with:
|
||||||
|
os: linux
|
||||||
|
cuda_version: 12.1
|
||||||
|
torch_ver: 'stable'
|
||||||
|
models-json: '{"v1-5-pruned-emaonly.ckpt": {"url": "https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.ckpt", "directory": "checkpoints"}, "epiNoiseoffset_v2.safetensors": {"url": "https://huggingface.co/adhikjoshi/epi_noiseoffset/resolve/main/epiNoiseoffset_v2.safetensors", "directory": "loras"}}'
|
||||||
|
workflow_json_path: '.github/workflows/json_examples/workflow_lora_api.json'
|
||||||
|
timeout: 50
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user