[Ai]ComfyUI+LTX-Video(image to video)

๐Ÿ‘‰๐Ÿป ComfyUI๋Š” ์ธ๊ณต์ง€๋Šฅ์œผ๋กœ ๋น„๋””์˜ค๋ฅผ ์ƒ์„ฑํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•ด์ฃผ๋Š” ๋„๊ตฌ์ž…๋‹ˆ๋‹ค.
ComfyUI is a tool that enables you to generate videos using artificial intelligence.

๐Ÿ‘‰๐Ÿป LTX-Video๋Š” ๋น„๋””์˜ค์ƒ์„ฑ ์ธ๊ณต์ง€๋Šฅ์ž…๋‹ˆ๋‹ค.
LTX-Video is a video generation AI.

๐Ÿ‘‰๐Ÿป ComfyUI์—์„œ ๋น„๋””์˜ค ์ƒ์„ฑ ์š”์ฒญ์„ํ•˜๋ฉด ์ด ComfyUI๊ฐ€ LTX-Video ์ธ๊ณต์ง€๋Šฅ์„ ๋ถˆ๋Ÿฌ์™€์„œ ๋น„๋””์˜ค ์ƒ์„ฑ ์š”์ฒญ์„ํ•˜๋ฉด ์ธ๊ณต์ง€๋Šฅ์ด ๋น„๋””์˜ค๋ฅผ ์ƒ์„ฑํ•˜๋Š” ๊ตฌ์กฐ์ž…๋‹ˆ๋‹ค.
The structure is such that when a video generation request is made in ComfyUI, ComfyUI calls the LTX-Video AI, and the AI โ€‹โ€‹generates the video.

๐Ÿ‘‰๐Ÿป ํ…Œ์ŠคํŠธ๋Š” ๋งฅos M3 ๋žจ16๊ธฐ๊ฐ€ ํ™˜๊ฒฝ์—์„œ ํ…Œ์ŠคํŠธ ํ–ˆ์Šต๋‹ˆ๋‹ค.
The test was conducted on a macOS M3 with 16GB of RAM.

๐Ÿ‘‰๐Ÿป์„ค์น˜ / Install

โœ”๏ธComfyUI๋‹ค์šด๋กœ๋“œ / ComfyUI Download

https://docs.comfy.org/installation/desktop/macos

โœ”๏ธ ๋‹ค์šด๋กœ๋“œ ๋ฐ›์€ ์•ฑ์„ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.
Run the downloaded app.

1)์•„๋ž˜์ฒ˜๋Ÿผ Local์„ ์„ ํƒํ•˜๊ณ  ์ฒดํฌ๋ฐ•์Šค๋ฅผ ๋ชจ๋‘ ์„ ํƒํ•˜๊ณ  Continue๋ฒ„ํŠผ์„ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.
Select Local as shown below, select all checkboxes, and select the Continue button.

— Cloud๋Š” ์œ ๋ฃŒ์ž…๋‹ˆ๋‹ค.
The Cloud is paid.

ComfyUI Install

2)์…‹ํŒ…์ด ์™„๋ฃŒ๋˜๋ฉด ์•„๋ž˜์™€ ๊ฐ™์€ ๋ฐ”ํƒ•ํ•˜๋ฉด์ด ๋‚˜์˜ต๋‹ˆ๋‹ค.
Once the setup is complete, the desktop shown below will appear.

ComfyUI

๐Ÿ‘‰๐Ÿป ์›Œํฌํ”Œ๋กœ์šฐ์…‹ํŒ… ๋ฐ ๋™์˜์ƒ์ƒ์„ฑํ•˜๊ธฐ
Setting up Workflow and Creating Videos

1) ์ขŒ์ธก ๋ฉ”๋‰ด์—์„œ ํ…œํ”Œ๋ฆฟ์„ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.
Select a template from the left menu.

ComfyUI

2) ๋ชจ๋“  ํ…œํ”Œ๋ฆฟ ์ฐฝ์—์„œ LTXV ์ด๋ฏธ์ง€์—์„œ ๋น„๋””์˜ค๋ฅผ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.
Select a video from the LTXV image in all template windows.

ComfyUI-All Templates

3) ๊ทธ๋Ÿฌ๋ฉด ํ™”๋ฉด์— ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์›Œํฌํ”Œ๋กœ์šฐ๋ฅผ ๋ถˆ๋Ÿฌ์˜ต๋‹ˆ๋‹ค.
Then, the following workflow is displayed on the screen.

— ์›Œํฌํ”Œ๋กœ์šฐ์™€ ํ•จ๊ป˜ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•˜๋Š”๊ฒƒ์„ ํ™•์ธ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
You can confirm that an error is occurring along with the workflow.

— ์•„์ง ์ธ๊ณต์ง€๋Šฅ ๋ชจ๋ธ์ด ๋‹ค์šด๋กœ๋“œ ๋˜์ง€ ์•Š์•˜๊ณ  ์ด๋ฏธ์ง€ ์„ ํƒ์ด ์™„๋ฃŒ๋˜์ง€ ์•Š์•˜๊ธฐ ๋•Œ๋ฌธ์ž…๋‹ˆ๋‹ค.
This is because the AI โ€‹โ€‹model has not been downloaded yet and image selection has not been completed.

์›Œํฌํ”Œ๋กœ์šฐ/Workflow

4)์ธ๊ณต์ง€๋Šฅ ๋ชจ๋ธ์„ ๋‹ค์šด๋กœ๋“œํ•ฉ๋‹ˆ๋‹ค.
Download the AI โ€‹โ€‹model.

— ๋ถˆ๋Ÿฌ์˜จ ์›Œํฌํ”Œ๋กœ์šฐ์—๋Š” Markdown Note๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค.
The imported workflow contains Markdown Notes.

— Model Storage Location์œ„์น˜์— ๋‹ค์šด๋กœ๋“œ ๋ฐ›์€ ํŒŒ์ผ์„ ์˜ฎ๊ฒจ ๋†“์Šต๋‹ˆ๋‹ค.
Move the downloaded file to the Model Storage Location.

— ์ œ๊ฐ€ ์‚ฌ์šฉํ•˜๋Š” ๋งฅ๋ถ์—์„œ ์‹ค์ œ์œ„์น˜๋Š” ์•„๋ž˜์™€ ๊ฐ™์Šต๋‹ˆ๋‹ค.
The actual location on the MacBook I use is as follows.

checkpoints:
/Users/userhome/ComfyUI-Installs/ComfyUI (1)/ComfyUI/models/checkpoints

text_encoders : 
/Users/userhome/ComfyUI-Installs/ComfyUI (1)/ComfyUI/models/text_encoders
Markdown Note

5)์›Œํฌํ”Œ๋กœ์šฐ / Workflfow

— ์•„๋ž˜์˜ ์›Œํฌํ”Œ๋กœ์šฐ์— ์žˆ๋Š” ๊ฐ ๋ฐ•์Šค๋Š” ๋ฐ•์Šค๋งˆ๋‹ค ํ•˜๋‚˜์˜ ๊ธฐ๋Šฅ์„ ๊ตฌํ˜„ํ•œ๊ฒƒ์ž…๋‹ˆ๋‹ค.
Each box in the workflow below implements a single function.

— ์—ฐ๊ฒฐ๋œ ์„ ์€ ๊ฐ ๊ธฐ๋Šฅ ๋งˆ๋‹ค ๋ฐ์ดํ„ฐ ์ด๋™ํ†ต๋กœ๋ผ๊ณ  ์ƒ๊ฐํ•˜๋ฉด๋ฉ๋‹ˆ๋‹ค.
You can think of the connected lines as data pathways for each function.

— ํ”„๋กœ๊ทธ๋ž˜๋ฐ์–ธ์–ด์—์„œ ๊ฐ ๋ฐ•์Šค๋Š” ํ•จ์ˆ˜์— ํ•ด๋‹นํ•˜๊ณ  ์—ฐ๊ฒฐ๋œ์„ ์€ ํŒŒ๋ผ๋ฉ”ํ„ฐ๋ผ๊ณ  ์ดํ•ดํ•˜๋ฉด ๋ฉ๋‹ˆ๋‹ค.
In programming languages, you can understand that each box corresponds to a function and the connected lines are parameters.

์›Œํฌํ”Œ๋กœ์šฐ/Workflow

6) ์›Œํฌํ”Œ๋กœ์šฐ ์ž…๋ ฅ / Workflow input

โœ”๏ธ ์ธ๊ณต์ง€๋Šฅ ๋ชจ๋ธ์„ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค.
Check the artificial intelligence model.

Step1- Load models

โœ”๏ธ์ด๋ฏธ์ง€๋ฅผ ์…‹ํŒ…ํ•ฉ๋‹ˆ๋‹ค.
Set the image.

Step2-Upload Image

โœ”๏ธpositive ํ”„๋กฌํ”„ํŠธ์™€ negativeํ”„๋กฌํ”„ํŠธ๋ฅผ ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค.
Enter the positive prompt and negative prompt.

— ์ €์˜ ๊ฒฝ์šฐ๋Š” ์•„๋ž˜์™€ ๊ฐ™์€ positiveํ”„๋กฌํ”„ํŠธ๋งŒ ์ž…๋ ฅํ–ˆ์Šต๋‹ˆ๋‹ค.
In my case, I only entered the following positive prompt.

A cybernetic rockstar with long dark hair, sunglasses, and a robotic left arm is intensely playing an acoustic guitar. Close up on his hands strumming and pressing the guitar strings smoothly. Dust particles and subtle light embers floating in the dark, gritty cyberpunk room, cinematic motion, realistic physics, high quality video.
Step3-prompt

7)๋™์˜์ƒ์ƒ์„ฑ / Create video

โœ”๏ธ ์‹คํ–‰๋ฒ„ํŠผ์„ ํด๋ฆญํ•ด์„œ ๋™์˜์ƒ์„ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค
Click the play(Run) button to create a video.

โœ”๏ธ ์ €์˜ ๊ฒฝ์šฐ๋Š” ๋™์˜์ƒ ์ƒ์„ฑํ•˜๋Š”๋ฐ 15๋ถ„์ •๋„ ๊ฑธ๋ ธ์Šต๋‹ˆ๋‹ค.
In my case, it took about 15 minutes to generate the video.

Run

8)๋™์˜์ƒ ์ƒ์„ฑ ์œ„์น˜ ๋ฐ ์žฌ์ƒ
Video creation location and playback

โœ”๏ธ ์•„๋ž˜์˜ ์œ„์น˜์— ๋™์˜์ƒ์ด ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค.
A video will be created at the location below.

MacBookAir video % pwd
/Users/userhome/ComfyUI-Shared/output/video
MacBookAir video % ls
ComfyUI_00001_.mp4

โœ”๏ธ ์•„๋ž˜๋Š” ์ƒ์„ฑ๋œ ๋™์˜์ƒ ์ž…๋‹ˆ๋‹ค.
Below is the generated video.

Leave a Reply