Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add mochi nodes #326

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bizyair_extras/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@
from .nodes_trellis import *
from .nodes_ultimatesdupscale import *
from .nodes_upscale_model import *
from .nodes_mochi import *
22 changes: 22 additions & 0 deletions bizyair_extras/nodes_mochi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
from bizyair import BizyAirBaseNode

class BizyAir_mochi(BizyAirBaseNode):
@classmethod
def INPUT_TYPES(s):
return {
"required": {
"prompt": ("STRING", {"default": "Close-up of a chameleon's eye, with its scaly skin changing color. Ultra high resolution 4k."}),
"steps": ("INT", {"default": 20, "min": 1, "max": 50}),
"width": ("INT", {"default": 480, "min": 64, "max": 1536, "step": 8}),
"height": ("INT", {"default": 848, "min": 64, "max": 1536, "step": 8}),
"frames": ("INT", {"default": 96, "min": 1, "max": 4096}),
"fps": ("INT", {"default": 22, "min": 8, "max": 64}),
"filename": ("STRING", {"default": "mochi"}),
}
}

RETURN_TYPES = ("STRING",)
RETURN_NAMES = ("path",)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里输出要转为 IMAGES , 融入comfyui 生态中
image

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

CATEGORY = "☁️BizyAir/Trellis"
NODE_DISPLAY_NAME = "☁️BizyAir mochi"
OUTPUT_NODE = True
8 changes: 8 additions & 0 deletions src/bizyair/configs/models.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -307,3 +307,11 @@ model_rules:
route: /supernode/bizyair-janus-pro-7b
nodes:
- class_type: 'JanusModelLoader'

- mode_type: mochi
base_model: mochi
describe: mochi
score: 1
route: /supernode/mochi
nodes:
- class_type: 'mochi'
Loading