GithubHelp home page GithubHelp logo

comfyui_toyxyz_test_nodes's Introduction

ComfyUI_toyxyz_test_nodes

This node was created to send a webcam to ComfyUI in real time.

This node is recommended for use with LCM.

75.mp4

(This video is at 4x speed)

Update

2023/11/24 - AddSave image to path node. Add Render preview, Add export video, Add face detection (After the update, you will need to run CaptrueCam/setup.bat one more time.)

Installation

  1. Git clone this repo to the ComfyUI/custom_nodes path.

    git clone https://github.com/toyxyz/ComfyUI_toyxyz_test_nodes

  2. Run setup.bat in ComfyUI/custom_nodes/ComfyUI_toyxyz_test_nodes/CaptureCam

Usage

Default workflow workflow (36) (Workflow embedded)

Render preview workflow workflow (38) (Workflow embedded)

1. Load Webcam Image

Load an image from a path.

To use this node with webcam, you must first run run.bat in ComfyUI/custom_nodes/ComfyUI_toyxyz_test_nodes/CaptureCam.

And in the Webcam app, you'll need to select your webcam and run capture with start.

image

2. Capture Webcam

Captures an image directly from the webcam selected with 'select_webcam'.

This is very slow compared to the Load Webcam Image node.

If you're using LCM, I recommend using the Load Webcam Image node.

image

3. Save image to path

This node saves the generated images to a defined path.

If save_sequence is true, it saves the images in order without overwriting them.

image

4. Webcam app

This script captures the selected webcam and saves it as an image file in real-time.

You can specify the resolution, format, and path of the image to be saved.

If you don't enter a path, it will be saved to the default path.

If either the width or height is zero, it will be automatically adjusted to fit the other values entered.

You can combine a sequence of saved images into a video using the Export button. Make sure to set save_sequence in Save Image to Path to true.

To use AI Render, you need a Save Image to Path node.

If you entered a location other than the default path in Save Image to Path, you must select a newly created render image in Select Rendered image.

image

81.2.mp4

5. Render preview

Load the image file saved with the Save image to path node. Pressing 'Q' while the window is active will copy the preview image to the clipboard.

image

6. Face detection

Detect faces and create masks. Use it for inpainting with the Load Webcam Image node.

image

Note

The ControlNet preprocessor slows down the process, so I recommend using other tools to prepare the ControlNet image.

If you want ComfyUI to run continuously, use Auto Queue.

image

For maximum speed, set the VAE to taesd.

image

comfyui_toyxyz_test_nodes's People

Contributors

navezjt avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.