Popipopi93/bottle_finder
Viewer • Updated • 100 • 3
This model was trained with Image Regression Model Trainer. It takes an image as input and outputs a float value.
from ImageRegression import predict
predict(repo_id='Popipopi93/model_colab_20_bis',image_path='image.jpg')
Dataset: Popipopi93/bottle_finder
Value Column: 'level'
Train Test Split: 0.1
Base Model: google/vit-base-patch16-224
Epochs: 20
Learning Rate: 0.0001
git clone https://github.com/TonyAssi/ImageRegression.git
cd ImageRegression
pip install -r requirements.txt
from ImageRegression import train_model, upload_model, predict
predict(repo_id='Popipopi93/model_colab_20_bis',
image_path='image.jpg')
The first time this function is called it'll download the safetensor model. Subsequent function calls will run faster.
train_model(dataset_id='Popipopi93/bottle_finder',
value_column_name='level',
test_split=0.1,
output_dir='./results',
num_train_epochs=20,
learning_rate=0.0001)
The trainer will save the checkpoints in the output_dir location. The model.safetensors are the trained weights you'll use for inference (predicton).
This function will upload your model to the 🤗 Hub.
upload_model(model_id='model_colab_20_bis',
token='YOUR_HF_TOKEN',
checkpoint_dir='./results/checkpoint-940')
Base model
google/vit-base-patch16-224