tonyassi/revolve-6-17-24
Viewer • Updated • 14.9k • 10 • 1
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='tonyassi/revolve-6-17-24-prediction',image_path='image.jpg')
Dataset: tonyassi/revolve-6-17-24
Value Column: 'sales_index'
Train Test Split: 0.2
Base Model: google/vit-base-patch16-224
Epochs: 10
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='tonyassi/revolve-6-17-24-prediction',
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='tonyassi/revolve-6-17-24',
value_column_name='sales_index',
test_split=0.2,
output_dir='./results',
num_train_epochs=10,
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='tonyassi/revolve-6-17-24-prediction',
token='YOUR_HF_TOKEN',
checkpoint_dir='./results/checkpoint-940')
Base model
google/vit-base-patch16-224