Downloads · 30 days
30
2% of all-time downloads
apple/AIM-7B
AIM-7B is a image classification model from apple. Use it when you need a label for an image. It is set up for ml-aim. The card lists the license as apple-amlr.
Alaaeldin El-Nouby, Michal Klein, Shuangfei Zhai, Miguel Angel Bautista, Alexander Toshev, Vaishaal Shankar, Joshua M Susskind, and Armand Joulin
Downloads · 30 days
30
2% of all-time downloads
All-time downloads
1.4K
Public
Repo size
51.9 GB
Likes
25
Public
Click a slice to open those files.
.bin25.9 GB · 100%
From the Hugging Face model README
Alaaeldin El-Nouby, Michal Klein, Shuangfei Zhai, Miguel Angel Bautista, Alexander Toshev, Vaishaal Shankar, Joshua M Susskind, and Armand Joulin
This software project accompanies the research paper, Scalable Pre-training of Large Autoregressive Image Models.
We introduce AIM a collection of vision models pre-trained with an autoregressive generative objective. We show that autoregressive pre-training of image features exhibits similar scaling properties to their textual counterpart (i.e. Large Language Models). Specifically, we highlight two findings:
Please install PyTorch using the official installation instructions. Afterward, install the package as:
pip install git+https://git@github.com/apple/ml-aim.git
Below we provide an example of loading the model via HuggingFace Hub as:
from PIL import Image
from aim.torch.models import AIMForImageClassification
from aim.torch.data import val_transforms
img = Image.open(...)
model = AIMForImageClassification.from_pretrained("apple/aim-7B")
transform = val_transforms()
inp = transform(img).unsqueeze(0)
logits, features = model(inp)
The table below contains the classification results on ImageNet-1k validation set.
<table style="margin: auto"> <thead> <tr> <th rowspan="2">model</th> <th colspan="2">top-1 IN-1k</th> </tr> <tr> <th>last layer</th> <th>best layer</th> </tr> </thead> <tbody> <tr> <td>AIM-0.6B</td> <td>78.5%</td> <td>79.4%</td> </tr> <tr> <td>AIM-1B</td> <td>80.6%</td> <td>82.3%</td> </tr> <tr> <td>AIM-3B</td> <td>82.2%</td> <td>83.3%</td> </tr> <tr> <td>AIM-7B</td> <td>82.4%</td> <td>84.0%</td> </tr> </tbody> </table>