allenai / allenai/unified-io-2.pytorch

The output of the largest model seems unreliable.

未關閉
#3 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
78
分支
8
PR 合併指標
30 天內沒有已合併 PR

描述

We are running the XXL Unified IO 2 model (pytorch version) on a NVIDIA GeForce RTX 4090. The demo.py file is shown below:

```python
from uio2 import config
from uio2.model import UnifiedIOModel
from uio2.preprocessing import UnifiedIOPreprocessor
preprocessor = UnifiedIOPreprocessor.from_config(config.XXL, "tokenizer.model")
model = UnifiedIOModel(config.XXL)

from uio2.runner import TaskRunner
runner = TaskRunner(model, preprocessor)

for _ in range(3):
ans1 = runner.categorization("something.jpg", ["boy", "girl", "cat", "dog", "car", "plane", "sun"])
print(f"Prediction: {ans1}")
```

`something.jpg` file is actually a picture of cat.
![something](https://github.com/allenai/unified-io-2.pytorch/assets/76479709/6405f8a8-056a-49a1-b6d9-0ab13487d31e)

The output is shown below:
```
Prediction: sun
Prediction: sun
Prediction: sun
```
Are we doing anything wrong?

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。