Closed lemontheme closed 3 months ago
In _animatediffui.py, the batch_image_dir path is set correctly.
cn_units = get_controlnet_units(p)
min_batch_in_cn = -1
for cn_unit in cn_units:
# batch path broadcast
if (cn_unit.input_mode.name == 'SIMPLE' and cn_unit.image is None) or \
(cn_unit.input_mode.name == 'BATCH' and not cn_unit.batch_image_dir) or \
(cn_unit.input_mode.name == 'MERGE' and not cn_unit.batch_input_gallery):
if not self.video_path:
extract_frames_from_video(self)
cn_unit.input_mode = cn_unit.input_mode.__class__.BATCH
cn_unit.batch_image_dir = self.video_path
breakpoint()
pdb output:
(Pdb) cn_unit.batch_image_dir
'GIF/pexels-cup-of-couple-7657138 1080p-6b899dcb'
Remove white space in your video filename , use the path to extracted frames instead for now. In settings/AnimateDiff, make the extraction path to be blank instead of “GIF” (“GIF” was because I made some stupid typo before)
Hi there! Just found the culprit. It's this line in forge's controlnet.py: batch_modifer()
(three or so lines above) is returning the full path instead of the file's basename. Next, that path gets needlessly joined with unit.batch_image_dir
.
@continue-revolution That seems to get me past this step, yay! (I'm facing CUDA side-asserts now, but I doubt it's related.)
Just to be sure, what do you mean by this?
use the path to extracted frames instead for now.
I'm not sure where I'm supposed to specify that. Thanks!
Is there an existing issue for this?
Have you read FAQ on README?
What happened?
I'm trying to get v2v to work.
Frame extraction is working as expected. Frames are saved to
<webui_directory>/GIF/<video name>-<hash>/*.jpg
.Controlnet complains it can't read the frame images. That's because the image paths do not exist. If you look closely, they contain a repeat of the frames batch path.
I've provided the traceback below.
I did some poking around with the debugger, but since I'm new to the code base, I can't figure out where Controlnet is building the image path or where animatediff is passing it in.
Apologies in advance if this is actually a forge issue instead.
Steps to reproduce the problem
What should have happened?
Controlnet uses the correct image path.
Commit where the problem happens
webui: 29be1da7 extension: b20f751
What browsers do you use to access the UI ?
No response
Command Line Arguments
Console logs
Additional information
No response