mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-11 14:50:49 +08:00
Fix torch.zeroes error
This commit is contained in:
parent
3f1f427ff4
commit
5b3eb2e51c
@ -356,7 +356,7 @@ class TransformersManagedModel(ModelManageable, LanguageModel):
|
||||
image_sizes = []
|
||||
# todo: what is the best choice for this?
|
||||
# probably select a size that related to the vision tower?
|
||||
images = torch.zeroes((0, 0, 0, 3))
|
||||
images = torch.zeros((0, 0, 0, 3))
|
||||
|
||||
try:
|
||||
if hasattr(tokenizer, "apply_chat_template"):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user