Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"list index out of range" when inputting a 16 channel latest image to the sampler #163

Open
liuxiaolong98 opened this issue Jan 10, 2025 · 0 comments

Comments

@liuxiaolong98
Copy link

The usual practice is to input an EmptyLatentImage, which has a channel of 4. However, when inputting an image from channel 16 (such as connecting to EmptySD3LantentImage), an error will occur(list index out of range);

However, in line 379 of node. py, the sampler supports 16 channel images:
if c==16: orig_x=latent_image['samples'] lat_processor2 = LATENT_PROCESSOR_COMFY() orig_x=lat_processor2.go_back(orig_x) orig_x=orig_x.to(device, dtype=dtype_model)

By investigating the internal code, the problem occurred in lines 255 and 266 of the sampling. py file, with a t_id of 21 and a timesteps list length of 21. Using the command t=timesteps [t_idx] would result in the above error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant