allenai / allenai/unified-io-2.pytorch
The output of the largest model seems unreliable.
- 主要語言
- 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.

The output is shown below:
```
Prediction: sun
Prediction: sun
Prediction: sun
```
Are we doing anything wrong?
貢獻指南
這個儲存庫沒有索引到貢獻指南
評估
這個 Issue 還沒有評估資料。