BrownEnergy/secchi_depth
Viewer • Updated • 1.43k • 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='BrownEnergy/sd_depth_regression_v2',image_path='image.jpg')
Dataset: BrownEnergy/secchi_depth
Value Column: 'sd_depth'
Train Test Split: 0.05
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='BrownEnergy/sd_depth_regression_v2',
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='BrownEnergy/secchi_depth',
value_column_name='sd_depth',
test_split=0.05,
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='sd_depth_regression_v2',
token='YOUR_HF_TOKEN',
checkpoint_dir='./results/checkpoint-940')
Base model
google/vit-base-patch16-224