Skip to content

Commit

Permalink
Add sd single t5 workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
yoland68 committed Jul 17, 2024
1 parent 423b93a commit efa9b9d
Show file tree
Hide file tree
Showing 3 changed files with 199 additions and 1 deletion.
2 changes: 1 addition & 1 deletion action.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def send_payload_to_api(
print("#### Response ####")
try:
pprint.pprint(response.json())
except:
except json.JSONDecodeError:
print(response.text)

# Write response to application.log
Expand Down
13 changes: 13 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,12 @@ runs:
- name: '[Unix] Check conda environment'
if: ${{ inputs.os != 'windows' }}
run: |
which python
echo "#### Python Version ####"
python --version
echo "#### Pip Version ####"
pip --version
echo "#### Conda Info Version ####"
conda info
conda list
shell: bash -el {0}
Expand Down Expand Up @@ -333,11 +339,18 @@ runs:
run: |
conda activate gha-comfyui-${{ inputs.python_version }}-${{ inputs.torch_version }}
pip install -r requirements.txt
conda install google-cloud-storage -y # This is because some fcking how, installing google-cloud-storage using pip has permission error on Windows using python 3.12
- name: "[Win] Check conda environment"
if: ${{ inputs.os == 'windows' }}
run: |
conda activate gha-comfyui-${{ inputs.python_version }}-${{ inputs.torch_version }}
Get-Command python
Write-Output "#### Python Version ####"
python --version
Write-Output "#### Pip Version ####"
pip --version
Write-Output "#### Conda Info ####"
conda info
conda list
shell: powershell
Expand Down
185 changes: 185 additions & 0 deletions workflows/sd3-single-t5.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
{
"6": {
"inputs": {
"text": "a female character with long, flowing hair that appears to be made of ethereal, swirling patterns resembling the Northern Lights or Aurora Borealis. The background is dominated by deep blues and purples, creating a mysterious and dramatic atmosphere. The character's face is serene, with pale skin and striking features. She wears a dark-colored outfit with subtle patterns. The overall style of the artwork is reminiscent of fantasy or supernatural genres",
"clip": [
"272",
0
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP Text Encode (Prompt)"
}
},
"13": {
"inputs": {
"shift": 3,
"model": [
"252",
0
]
},
"class_type": "ModelSamplingSD3",
"_meta": {
"title": "ModelSamplingSD3"
}
},
"67": {
"inputs": {
"conditioning": [
"71",
0
]
},
"class_type": "ConditioningZeroOut",
"_meta": {
"title": "ConditioningZeroOut"
}
},
"68": {
"inputs": {
"start": 0.1,
"end": 1,
"conditioning": [
"67",
0
]
},
"class_type": "ConditioningSetTimestepRange",
"_meta": {
"title": "ConditioningSetTimestepRange"
}
},
"69": {
"inputs": {
"conditioning_1": [
"68",
0
],
"conditioning_2": [
"70",
0
]
},
"class_type": "ConditioningCombine",
"_meta": {
"title": "Conditioning (Combine)"
}
},
"70": {
"inputs": {
"start": 0,
"end": 0.1,
"conditioning": [
"71",
0
]
},
"class_type": "ConditioningSetTimestepRange",
"_meta": {
"title": "ConditioningSetTimestepRange"
}
},
"71": {
"inputs": {
"text": "bad quality, poor quality, doll, disfigured, jpg, toy, bad anatomy, missing limbs, missing fingers, 3d, cgi",
"clip": [
"272",
0
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP Text Encode (Negative Prompt)"
}
},
"135": {
"inputs": {
"width": 1024,
"height": 1024,
"batch_size": 1
},
"class_type": "EmptySD3LatentImage",
"_meta": {
"title": "EmptySD3LatentImage"
}
},
"231": {
"inputs": {
"samples": [
"271",
0
],
"vae": [
"252",
2
]
},
"class_type": "VAEDecode",
"_meta": {
"title": "VAE Decode"
}
},
"233": {
"inputs": {
"images": [
"231",
0
]
},
"class_type": "PreviewImage",
"_meta": {
"title": "Preview Image"
}
},
"252": {
"inputs": {
"ckpt_name": "sd3_medium.safetensors"
},
"class_type": "CheckpointLoaderSimple",
"_meta": {
"title": "Load Checkpoint"
}
},
"271": {
"inputs": {
"seed": 780289980632866,
"steps": 28,
"cfg": 4.5,
"sampler_name": "dpmpp_2m",
"scheduler": "sgm_uniform",
"denoise": 1,
"model": [
"13",
0
],
"positive": [
"6",
0
],
"negative": [
"69",
0
],
"latent_image": [
"135",
0
]
},
"class_type": "KSampler",
"_meta": {
"title": "KSampler"
}
},
"272": {
"inputs": {
"clip_name": "t5xxl_fp8_e4m3fn.safetensors",
"type": "sd3"
},
"class_type": "CLIPLoader",
"_meta": {
"title": "Load CLIP"
}
}
}

0 comments on commit efa9b9d

Please sign in to comment.