Image Classification
Transformers
PyTorch
TensorBoard
Safetensors
customManuel
Generated from Trainer
custom_code
Instructions to use Manu8/vit_cifar with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Manu8/vit_cifar with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="Manu8/vit_cifar", trust_remote_code=True) pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForImageClassification model = AutoModelForImageClassification.from_pretrained("Manu8/vit_cifar", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update model.py
Browse files
model.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
from .config import
|
| 2 |
from transformers import PreTrainedModel
|
| 3 |
import torch
|
| 4 |
from torch import nn
|
|
|
|
| 1 |
+
from .config import VITConfig
|
| 2 |
from transformers import PreTrainedModel
|
| 3 |
import torch
|
| 4 |
from torch import nn
|