p1atdev / siglip-tagger-test-2

huggingface.co
Total runs: 2
24-hour runs: 0
7-day runs: 0
30-day runs: -1
Model's Last Updated: February 03 2024
image-classification

Introduction of siglip-tagger-test-2

Model Details of siglip-tagger-test-2

siglip-tagger-test-2

This model is a fine-tuned version of google/siglip-base-patch16-512 on an unknown dataset. It achieves the following results on the evaluation set:

  • Loss: 364.7850
  • Accuracy: 0.2539
  • F1: 0.9967
Model description

This model is an experimental model that predicts danbooru tags of images.

Example
from PIL import Image

import torch
from transformers import (
    AutoModelForImageClassification,
    AutoImageProcessor,
)
import numpy as np

MODEL_NAME = "p1atdev/siglip-tagger-test-2"

model = AutoModelForImageClassification.from_pretrained(
    MODEL_NAME, torch_dtype=torch.bfloat16, trust_remote_code=True
)
model.eval()
processor = AutoImageProcessor.from_pretrained(MODEL_NAME)

image = Image.open("sample.jpg") # load your image
inputs = processor(image, return_tensors="pt").to(model.device, model.dtype)

logits = model(**inputs).logits.detach().cpu().float()[0]
logits = np.clip(logits, 0.0, 1.0)

results = {
    model.config.id2label[i]: logit for i, logit in enumerate(logits) if logit > 0
}
results = sorted(results.items(), key=lambda x: x[1], reverse=True)

for tag, score in results:
    print(f"{tag}: {score*100:.2f}%")
# 1girl: 100.00%
# outdoors: 100.00%
# sky: 100.00%
# solo: 100.00%
# school uniform: 96.88%
# skirt: 92.97%
# day: 89.06%
# ...
Intended uses & limitations

This model is for research use only and is not recommended for production.

Please use wd-v1-4-tagger series by SmilingWolf:

etc.

Training and evaluation data

High quality 5000 images from danbooru. They were shuffled and split into train:eval at 4500:500.

Training procedure
Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 0.0001
  • train_batch_size: 32
  • eval_batch_size: 16
  • seed: 42
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lr_scheduler_type: cosine
  • lr_scheduler_warmup_steps: 100
  • num_epochs: 20
Training results
Training Loss Epoch Step Validation Loss Accuracy F1
1496.9876 1.0 141 691.3267 0.1242 0.9957
860.0218 2.0 282 433.5286 0.1626 0.9965
775.4277 3.0 423 409.0374 0.1827 0.9966
697.2465 4.0 564 396.5604 0.2025 0.9966
582.6023 5.0 705 388.3294 0.2065 0.9966
617.5087 6.0 846 382.2605 0.2213 0.9966
627.533 7.0 987 377.6726 0.2269 0.9967
595.4033 8.0 1128 374.3268 0.2327 0.9967
593.3854 9.0 1269 371.4181 0.2409 0.9967
537.9777 10.0 1410 369.5010 0.2421 0.9967
552.3083 11.0 1551 368.0743 0.2468 0.9967
570.5438 12.0 1692 366.8302 0.2498 0.9967
507.5343 13.0 1833 366.1787 0.2499 0.9967
515.5528 14.0 1974 365.5653 0.2525 0.9967
458.5096 15.0 2115 365.1838 0.2528 0.9967
515.6953 16.0 2256 364.9844 0.2535 0.9967
533.7929 17.0 2397 364.8577 0.2538 0.9967
520.3728 18.0 2538 364.8066 0.2537 0.9967
525.1097 19.0 2679 364.7850 0.2539 0.9967
482.0612 20.0 2820 364.7876 0.2539 0.9967
Framework versions
  • Transformers 4.37.2
  • Pytorch 2.1.2+cu118
  • Datasets 2.16.1
  • Tokenizers 0.15.0

Runs of p1atdev siglip-tagger-test-2 on huggingface.co

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

More Information About siglip-tagger-test-2 huggingface.co Model

More siglip-tagger-test-2 license Visit here:

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

siglip-tagger-test-2 huggingface.co

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

siglip-tagger-test-2 huggingface.co Url

https://huggingface.co/p1atdev/siglip-tagger-test-2

p1atdev siglip-tagger-test-2 online free

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

p1atdev siglip-tagger-test-2 online free url in huggingface.co:

https://huggingface.co/p1atdev/siglip-tagger-test-2

siglip-tagger-test-2 install

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

siglip-tagger-test-2 install url in huggingface.co:

https://huggingface.co/p1atdev/siglip-tagger-test-2

Url of siglip-tagger-test-2

siglip-tagger-test-2 huggingface.co Url

Provider of siglip-tagger-test-2 huggingface.co

p1atdev
ORGANIZATIONS

Other API from p1atdev

huggingface.co

Total runs: 9.7K
Run Growth: 8.4K
Growth Rate: 87.11%
Updated:February 28 2023
huggingface.co

Total runs: 1.2K
Run Growth: -2.5K
Growth Rate: -198.72%
Updated:May 12 2024
huggingface.co

Total runs: 989
Run Growth: -91
Growth Rate: -9.20%
Updated:March 11 2024
huggingface.co

Total runs: 47
Run Growth: 2
Growth Rate: 4.26%
Updated:June 21 2023
huggingface.co

Total runs: 35
Run Growth: 4
Growth Rate: 11.43%
Updated:May 10 2023
huggingface.co

Total runs: 25
Run Growth: -13
Growth Rate: -52.00%
Updated:March 11 2024
huggingface.co

Total runs: 14
Run Growth: 8
Growth Rate: 57.14%
Updated:May 20 2023
huggingface.co

Total runs: 7
Run Growth: 6
Growth Rate: 85.71%
Updated:July 06 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:May 15 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:March 02 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:February 16 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:March 01 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:July 23 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:March 28 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:July 01 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:April 04 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:April 04 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:March 23 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:January 21 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:February 15 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:January 25 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:July 09 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:January 20 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:May 27 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:February 15 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:April 03 2023