mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-22 20:30:25 +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 = []
|
image_sizes = []
|
||||||
# todo: what is the best choice for this?
|
# todo: what is the best choice for this?
|
||||||
# probably select a size that related to the vision tower?
|
# 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:
|
try:
|
||||||
if hasattr(tokenizer, "apply_chat_template"):
|
if hasattr(tokenizer, "apply_chat_template"):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user