feat: add comfyUI generate video workflow (HunyuanVideo1.5)#212
Conversation
Signed-off-by: weedge <weege007@gmail.com>
Signed-off-by: weedge <weege007@gmail.com>
Summary of ChangesHello @weedge, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly expands the project's capabilities by integrating video generation features. It introduces the HunyuanVideo1.5 model into the ComfyUI ecosystem, provides a new utility for streaming video frames, and refactors the API to clearly separate image and video generation functionalities. These changes enable users to generate videos from text prompts and stream them efficiently, enhancing the overall multimedia generation pipeline. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces a new video generation workflow using ComfyUI and HunyuanVideo1.5, along with a Flask-based video frame streaming demo. The changes are extensive, adding new processors, server endpoints, and configuration files. While the core functionality is a great addition, I've identified several critical security vulnerabilities and bugs that need to be addressed. Specifically, the demo script has path traversal and remote code execution vulnerabilities. The new video processor has critical bugs that will cause it to fail at runtime. I've also left some comments on maintainability and potential runtime issues. Please review the comments carefully to ensure the code is secure and robust.
Signed-off-by: weedge <weege007@gmail.com>
Signed-off-by: weedge <weege007@gmail.com>
Signed-off-by: weedge <weege007@gmail.com>
HunyuanVideo1.5:

comfyUI with hunyuanVideo1.5 720p text2video workflow config

content-3.mp4
content-2.mp4
AI podcast:
feat:
Download Models(ckpt)
# download video_hunyuan_video_1_5_720p_t2v workflow config for comfyUI wget https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/templates/video_hunyuan_video_1.5_720p_t2v.json -O src/comfyui/workflow_config/video_hunyuan_video_1_5_720p_t2v.jsonDIY Workflow
# run confyui with hunyuanVideo1.5 720p (text2video) workflow json config MODEL_NAME=video_hunyuan_video_1_5_720p_t2v IMAGE_GPU=L40S modal serve src/comfyui/ui.pyDeploy API Server (wrap
comfy launchserver andcomfy run --workflowapi workflow)# run confyui server with hunyuanVideo1.5 720p (text2video) workflow api json config MODEL_NAME=video_hunyuan_video_1_5_720p_t2v IMAGE_GPU=L40S modal serve src/comfyui/server.pyhunyuanVideo1.5 720p workflow api json run log (text2Video):
Client
achatbot integrate ComfyUI API Video Gen Processor
VIDEO_GEN_PROCESSOR=ComfyUIAPIVideoGenProcessor \ API_URL=https://weedge--server-comfyui-api-dev.modal.run/video \ MODEL=video_hunyuan_video_1_5_720p_t2v \ python -m unittest test.integration.processors.test_video_gen_processor.TestProcessorreference