allenai / allenai/unified-io-2.pytorch
Preprocessed image is not correct
- 主要言語
- Python
- スター
- 78
- フォーク
- 8
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Hi,
For the following cat image, I get this preprocessed input after the preprocessor. However, the preprocessed (after encoded by the ViT) looks not correct. Is this the correct behavior? Similar patterns happen for any kind of image for the model. Also, this applies to large, xl and xxl
```
cat_image = "/workspace/alpkant/cat.jpg"
preprocessed_example = preprocessor(text_inputs="", image_inputs=cat_image, text_targets= "Speed",target_modality="text", is_training=False)
plt.figure()
plt.imshow(preprocessed_example["/inputs/image/input"]*255) # This is because they are scaled between 0-1 after preprocessing
plt.show()
```


コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。