Run this model with HF Jobs
Run dima806/skin_types_image_detection on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/dima806/skin_types_image_detection. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/dima806/skin_types_image_detection on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use dima806/skin_types_image_detection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dima806/skin_types_image_detection with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="dima806/skin_types_image_detection") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("dima806/skin_types_image_detection") model = AutoModelForImageClassification.from_pretrained("dima806/skin_types_image_detection", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse filesFiles changed (11)
- checkpoint-180/config.jsonAdded+34
- checkpoint-180/model.safetensorsAdded+3
- checkpoint-180/optimizer.ptAdded+3
- checkpoint-180/preprocessor_config.jsonAdded+36
- checkpoint-180/rng_state.pthAdded+3
- checkpoint-180/scheduler.ptAdded+3
- checkpoint-180/trainer_state.jsonAdded+66
- checkpoint-180/training_args.binAdded+3
- config.json+1-1
- model.safetensors+1-1
- training_args.bin+2-2
12345678910111213141516171819202122232425262728293031323334{ "_name_or_path": "dima806/skin_types_image_detection", "architectures": [ "ViTForImageClassification" ], "attention_probs_dropout_prob": 0.0, "encoder_stride": 16, "hidden_act": "gelu", "hidden_dropout_prob": 0.0, "hidden_size": 768, "id2label": { "0": "dry", "1": "normal", "2": "oily" }, "image_size": 224, "initializer_range": 0.02, "intermediate_size": 3072, "label2id": { "dry": 0, "normal": 1, "oily": 2 }, "layer_norm_eps": 1e-12, "model_type": "vit", "num_attention_heads": 12, "num_channels": 3, "num_hidden_layers": 12, "patch_size": 16, "problem_type": "single_label_classification", "qkv_bias": true, "torch_dtype": "float32", "transformers_version": "4.40.1"}123version https://git-lfs.github.com/spec/v1oid sha256:572185743c6be523efcc72b71f12c089cb81baf54525a1831b333544ba47224asize 343227052123version https://git-lfs.github.com/spec/v1oid sha256:e810130f2f0755b51690c3c2b497ac73ca55722cf9302e4c7e00905fbe8dde3dsize 686575034123456789101112131415161718192021222324252627282930313233343536{ "_valid_processor_keys": [ "images", "do_resize", "size", "resample", "do_rescale", "rescale_factor", "do_normalize", "image_mean", "image_std", "return_tensors", "data_format", "input_data_format" ], "do_normalize": true, "do_rescale": true, "do_resize": true, "image_mean": [ 0.5, 0.5, 0.5 ], "image_processor_type": "ViTImageProcessor", "image_std": [ 0.5, 0.5, 0.5 ], "resample": 2, "rescale_factor": 0.00392156862745098, "size": { "height": 224, "width": 224 }}123version https://git-lfs.github.com/spec/v1oid sha256:c9d1eedae612b647afe5e808910cc6c25a2d9ac62dc78d82d41d644785985123size 14244123version https://git-lfs.github.com/spec/v1oid sha256:2cfb23b2865764cc7131ef99babb29f67ef1d883dea88ea7857a30057023c3c1size 1064123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566{ "best_metric": 0.9216932654380798, "best_model_checkpoint": "skin_types_image_detection/checkpoint-180", "epoch": 5.0, "eval_steps": 500, "global_step": 180, "is_hyper_param_search": false, "is_local_process_zero": true, "is_world_process_zero": true, "log_history": [ { "epoch": 1.0, "eval_accuracy": 0.6500981033355134, "eval_loss": 0.9241806864738464, "eval_runtime": 19.6412, "eval_samples_per_second": 77.847, "eval_steps_per_second": 2.444, "step": 36 }, { "epoch": 2.0, "eval_accuracy": 0.6507521255722695, "eval_loss": 0.9233015179634094, "eval_runtime": 19.4603, "eval_samples_per_second": 78.57, "eval_steps_per_second": 2.467, "step": 72 }, { "epoch": 3.0, "eval_accuracy": 0.6546762589928058, "eval_loss": 0.9224075078964233, "eval_runtime": 19.6334, "eval_samples_per_second": 77.878, "eval_steps_per_second": 2.445, "step": 108 }, { "epoch": 4.0, "eval_accuracy": 0.6533682145192936, "eval_loss": 0.9218368530273438, "eval_runtime": 19.439, "eval_samples_per_second": 78.656, "eval_steps_per_second": 2.469, "step": 144 }, { "epoch": 5.0, "eval_accuracy": 0.6533682145192936, "eval_loss": 0.9216932654380798, "eval_runtime": 19.7524, "eval_samples_per_second": 77.408, "eval_steps_per_second": 2.43, "step": 180 } ], "logging_steps": 500, "max_steps": 180, "num_input_tokens_seen": 0, "num_train_epochs": 5, "save_steps": 500, "total_flos": 8.884536237887386e+17, "train_batch_size": 64, "trial_name": null, "trial_params": null}123version https://git-lfs.github.com/spec/v1oid sha256:feda3225a79e649d66ee4670b47cd0d12ba7eff7961c499a34768a1c99ec915bsize 492029 unmodified lines303132333429 unmodified lines"problem_type": "single_label_classification","qkv_bias": true,"torch_dtype": "float32","transformers_version": "4.39.3"}29 unmodified lines303132333429 unmodified lines"problem_type": "single_label_classification","qkv_bias": true,"torch_dtype": "float32","transformers_version": "4.40.1"}
123version https://git-lfs.github.com/spec/v1oid sha256:83ce1a71aa0ca417c480bd0936102a0ff117ee9bf38a31979b1474a2a43f8376size 343227052123version https://git-lfs.github.com/spec/v1oid sha256:572185743c6be523efcc72b71f12c089cb81baf54525a1831b333544ba47224asize 343227052
123version https://git-lfs.github.com/spec/v1oid sha256:9956e965656e23e62ab9efcf647d3f321fe84137baf350162bf67e10f66199bfsize 4856123version https://git-lfs.github.com/spec/v1oid sha256:feda3225a79e649d66ee4670b47cd0d12ba7eff7961c499a34768a1c99ec915bsize 4920
checkpoint-180/config.jsonAdded+34
checkpoint-180/model.safetensorsAdded+3
checkpoint-180/optimizer.ptAdded+3
checkpoint-180/preprocessor_config.jsonAdded+36
checkpoint-180/rng_state.pthAdded+3
checkpoint-180/scheduler.ptAdded+3
checkpoint-180/trainer_state.jsonAdded+66
checkpoint-180/training_args.binAdded+3
config.json+1-1
model.safetensors+1-1
training_args.bin+2-2