Unverified Commit 91877a9f authored by Lianmin Zheng's avatar Lianmin Zheng Committed by GitHub
Browse files

Fix modality for image inputs (#1592)

parent f7cce751
......@@ -144,7 +144,7 @@ class ImageInputs:
]
ret.image_sizes = obj["image_sizes"]
# Only when pixel values is not None we have modalities
ret.modalities = obj["modalities"]
ret.modalities = obj["modalities"] or ["image"]
return ret
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment