Skip to content

Commit

Permalink
Merge branch 'segment-anything' of github.com:siliconflow/BizyAir int…
Browse files Browse the repository at this point in the history
…o segment-anything
  • Loading branch information
Wanghanying committed Oct 30, 2024
2 parents b05b7fc + 4dcaee3 commit 5daf7b4
Show file tree
Hide file tree
Showing 66 changed files with 26,296 additions and 6,952 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/workflow-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches:
- master

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true

jobs:
check-modified-files:
runs-on: ubuntu-latest
Expand All @@ -16,10 +20,14 @@ jobs:
with:
fetch-depth: 0

- name: Fetch target branch
run: |
git fetch origin ${{ github.base_ref }} --depth=1
- name: Check modified files
id: check_files
run: |
modified_files=$(git diff --name-only ${{ github.event.before }} ${{ github.event.after }})
modified_files=$(git diff --name-only origin/${{ github.base_ref }}...HEAD)
only_non_code_files=true
for file in $modified_files; do
if [[ "$file" == *.py ]] || [[ "$file" == *.js ]] || [[ "$file" == *.json ]]; then
Expand Down
3 changes: 2 additions & 1 deletion bizyair_example_menu.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"InstantID Basic workflow by BizyAir KSampler": "bizyair_sdxl_InstantID_basic.json"
},
"SD3": {
"SD3.5 Text to Image": "bizyair_sd3_5_txt2img.json"
"SD3.5 Text to Image": "bizyair_sd3_5_txt2img.json",
"SD3.5 Turbo Text to Image": "bizyair_sd3_5_turbo_txt2img.json"
},
"Kolors": {
"Kolors Text to Image": "bizyair_kolors_txt2img.json",
Expand Down
1 change: 1 addition & 0 deletions bizyair_extras/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from .nodes_image_utils import *
from .nodes_ipadapter_plus.nodes_ipadapter_plus import *
from .nodes_kolors_mz import *
from .nodes_model_advanced import *
from .nodes_sd3 import *
from .nodes_testing_utils import *
from .nodes_ultimatesdupscale import *
Expand Down
21 changes: 21 additions & 0 deletions bizyair_extras/nodes_model_advanced.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# ComfyUI/comfy_extras/nodes_model_advanced.py
from bizyair import BizyAirBaseNode, BizyAirNodeIO, data_types


class ModelSamplingSD3(BizyAirBaseNode):
@classmethod
def INPUT_TYPES(s):
return {
"required": {
"model": (data_types.MODEL,),
"shift": (
"FLOAT",
{"default": 3.0, "min": 0.0, "max": 100.0, "step": 0.01},
),
}
}

RETURN_TYPES = (data_types.MODEL,)
# FUNCTION = "patch"

CATEGORY = "advanced/model"
139 changes: 139 additions & 0 deletions docs/docs/examples/bizyair_anime_image_super_resolution_workflow.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
{
"last_node_id": 35,
"last_link_id": 47,
"nodes": [
{
"id": 34,
"type": "BizyAirSuperResolution",
"pos": [
2158,
623
],
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 1,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 46
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
47
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "BizyAirSuperResolution"
},
"widgets_values": [
"2x"
]
},
{
"id": 33,
"type": "LoadImage",
"pos": [
1830,
614
],
"size": [
315,
314
],
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
46
],
"shape": 3,
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"葫芦娃吐火.webp",
"image"
]
},
{
"id": 35,
"type": "PreviewImage",
"pos": [
2165,
721
],
"size": [
321.3333740234375,
364.0000305175781
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 47
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
}
],
"links": [
[
46,
33,
0,
34,
0,
"IMAGE"
],
[
47,
34,
0,
35,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 1,
"offset": {
"0": -918,
"1": -317.33331298828125
}
}
},
"version": 0.4
}
Loading

0 comments on commit 5daf7b4

Please sign in to comment.