Git Product home page Git Product logo

grasshopper_comfyui's Introduction

Grasshopper ComfyUI Nodes

Convert and Use ComfyUI Workflow within Grasshopper

This repository facilitates the integration of ComfyUI workflow into Grasshopper.

Installation Steps:

  1. Download and use the ComfyUI portable version from https://github.com/comfyanonymous/ComfyUI.
  2. Copy gh_nodes.py to <A>:\ComfyUI_windows_portable\ComfyUI\custom_nodes. The custom nodes will appear under Grasshopper in the nodes menu.

Available Nodes:

  • GHSampler
  • GHPrompt
  • GHString
  • GHInteger
  • GHFloat
  • GHBool
  • GHFile
  • LoadImageGH

When using them, make sure to give them a nickname. Required nicknames are: seed, cfg, denoise, steps, width, height, positive, negative, sampler, scheduler, .....

Screenshots:

Screenshot 2024-04-18 061143 Screenshot 2

Usage Steps:

  1. Create your final workflow in ComfyUI.
  2. Save the JSON file without spaces in the name.
  3. Save the API JSON file without spaces in the name.
  4. Launch ComfyUI.
  5. Use Grasshopper components: https://www.food4rhino.com/en/app/comfyui-rhino-grasshopper
  6. Use Load Model component to choose a model: checkpoint, lora, controlnet, etc.
  7. Use Samplers and Schedulers components.
  8. If GHInteger_seed = -1, this creates a random seed; otherwise, you can fix it, and you can use Sampler seed component.
  9. Use Queue Prompt to run the queue, and always check ComfyUI cmd window or http://127.0.0.1:8188 to make sure it is running.

All images and meshes will be saved in the default folder: <A>:\ComfyUI_windows_portable\ComfyUI\output\.

Important:

  • I have an old laptop that doesn't support GPU, so I can't provide any help for ComfyUI workflows.
  • If you find this useful: Buy me a Coffee

grasshopper_comfyui's People

Contributors

seghier avatar

Stargazers

 avatar  avatar Dongyun Kim avatar  avatar Kartikay Sharma avatar Akihito Yokota avatar Mai Soli avatar Alexander Morozov avatar Chuong Ho avatar hrntsm avatar

Watchers

 avatar

Forkers

kksharma3951

grasshopper_comfyui's Issues

"GetImageSize_" node

In image2image.json example,
on line 317
"GetImageSize_" should be replaced with "GetImageSize"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.