tonyassi / tony__assi-ig-prediction

huggingface.co
Total runs: 0
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: June 05 2024

Introduction of tony__assi-ig-prediction

Model Details of tony__assi-ig-prediction

tony__assi-ig-prediction

IG Prediction

This model was trained with IGPrediction . It predicts how many likes an image will get.

from IGPredict import predict_ig
predict_ig(repo_id='tonyassi/tony__assi-ig-prediction',image_path='image.jpg')

Dataset

Dataset: tonyassi/tony__assi-ig-ds5
Value Column: 'likes'
Train Test Split: 0.2


Training

Base Model: google/vit-base-patch16-224
Epochs: 20
Learning Rate: 0.0001


Usage
Download
git clone https://github.com/TonyAssi/IGPrediction.git
cd IGPrediction
Installation
pip install -r requirements.txt
Import
from IGPredict import ig_download, upload_dataset, train_ig_model, upload_ig_model, predict_ig
Download Instagram Images
  • username Instagram username
  • num_images maximum number of images to download
ig_download(username='instagarm_username', num_images=100)

Instagram images will be downloaded to './images' folder, each one named like so "index-likes.jpg" . E.g. "3-17.jpg" is the third image and has 17 likes.

Upload Dataset
  • dataset_name name of dataset to be uploaded
  • token go here to create a new 🤗 token
upload_dataset(dataset_name='tonyassi/tony__assi-ig-ds5', token='YOUR_HF_TOKEN')

Go to your 🤗 profile to find your uploaded dataset, it should look similar to tonyassi/tony__assi-ig-ds .

Train Model
  • dataset_id 🤗 dataset id
  • test_split test split of the train/test split
  • num_train_epochs training epochs
  • learning_rate learning rate
train_ig_model(dataset_id='tonyassi/tony__assi-ig-ds5',
               test_split=0.2,
               num_train_epochs=20,
               learning_rate=0.0001)

The trainer will save the checkpoints in the 'results' folder. The model.safetensors are the trained weights you'll use for inference (predicton).

Upload Model

This function will upload your model to the 🤗 Hub.

  • model_id the name of the model id
  • token go here to create a new 🤗 token
  • checkpoint_dir checkpoint folder that will be uploaded
upload_ig_model(model_id='tony__assi-ig-prediction',
             token='YOUR_HF_TOKEN',
             checkpoint_dir='./results/checkpoint-940')
Inference (Prediction)
  • repo_id 🤗 repo id of the model
  • image_path path to image
predict_ig(repo_id='tonyassi/tony__assi-ig-prediction',
        image_path='image.jpg')

The first time this function is called it'll download the safetensor model. Subsequent function calls will run faster.

Runs of tonyassi tony__assi-ig-prediction on huggingface.co

0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About tony__assi-ig-prediction huggingface.co Model

More tony__assi-ig-prediction license Visit here:

https://choosealicense.com/licenses/apache-2.0

tony__assi-ig-prediction huggingface.co

tony__assi-ig-prediction huggingface.co is an AI model on huggingface.co that provides tony__assi-ig-prediction's model effect (), which can be used instantly with this tonyassi tony__assi-ig-prediction model. huggingface.co supports a free trial of the tony__assi-ig-prediction model, and also provides paid use of the tony__assi-ig-prediction. Support call tony__assi-ig-prediction model through api, including Node.js, Python, http.

tony__assi-ig-prediction huggingface.co Url

https://huggingface.co/tonyassi/tony__assi-ig-prediction

tonyassi tony__assi-ig-prediction online free

tony__assi-ig-prediction huggingface.co is an online trial and call api platform, which integrates tony__assi-ig-prediction's modeling effects, including api services, and provides a free online trial of tony__assi-ig-prediction, you can try tony__assi-ig-prediction online for free by clicking the link below.

tonyassi tony__assi-ig-prediction online free url in huggingface.co:

https://huggingface.co/tonyassi/tony__assi-ig-prediction

tony__assi-ig-prediction install

tony__assi-ig-prediction is an open source model from GitHub that offers a free installation service, and any user can find tony__assi-ig-prediction on GitHub to install. At the same time, huggingface.co provides the effect of tony__assi-ig-prediction install, users can directly use tony__assi-ig-prediction installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

tony__assi-ig-prediction install url in huggingface.co:

https://huggingface.co/tonyassi/tony__assi-ig-prediction

Url of tony__assi-ig-prediction

tony__assi-ig-prediction huggingface.co Url

Provider of tony__assi-ig-prediction huggingface.co

tonyassi
ORGANIZATIONS

Other API from tonyassi

huggingface.co

Total runs: 11
Run Growth: -2
Growth Rate: -18.18%
Updated:March 20 2024
huggingface.co

Total runs: 11
Run Growth: 7
Growth Rate: 63.64%
Updated:February 27 2024
huggingface.co

Total runs: 8
Run Growth: 7
Growth Rate: 87.50%
Updated:November 08 2023
huggingface.co

Total runs: 3
Run Growth: 1
Growth Rate: 33.33%
Updated:November 08 2023
huggingface.co

Total runs: 3
Run Growth: 2
Growth Rate: 66.67%
Updated:August 15 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:March 11 2026