Instructions to use Hilbs/FaucetDetect with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Hilbs/FaucetDetect with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="Hilbs/FaucetDetect") 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("Hilbs/FaucetDetect") model = AutoModelForImageClassification.from_pretrained("Hilbs/FaucetDetect", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
#1
by Hilbs - opened
Files changed (7)
- all_results.jsonAdded+8
- config.jsonAdded+32
- model.safetensorsAdded+3
- preprocessor_config.jsonAdded+36
- train_results.jsonAdded+8
- trainer_state.jsonAdded+44
- training_args.binAdded+3
12345678{ "epoch": 4.0, "total_flos": 2.3867532801294336e+16, "train_loss": 0.23429088592529296, "train_runtime": 606.0988, "train_samples_per_second": 0.508, "train_steps_per_second": 0.033}1234567891011121314151617181920212223242526272829303132{ "_name_or_path": "google/vit-base-patch16-224-in21k", "architectures": [ "ViTForImageClassification" ], "attention_probs_dropout_prob": 0.0, "encoder_stride": 16, "hidden_act": "gelu", "hidden_dropout_prob": 0.0, "hidden_size": 768, "id2label": { "0": "Not Running", "1": "Running" }, "image_size": 224, "initializer_range": 0.02, "intermediate_size": 3072, "label2id": { "Not Running": "0", "Running": "1" }, "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.39.3"}123version https://git-lfs.github.com/spec/v1oid sha256:15269333bc7d6f6f273da0d22ccd4642cc1fbc0c74992c380b89974006f429cdsize 343223968123456789101112131415161718192021222324252627282930313233343536{ "_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": "ViTFeatureExtractor", "image_std": [ 0.5, 0.5, 0.5 ], "resample": 2, "rescale_factor": 0.00392156862745098, "size": { "height": 224, "width": 224 }}12345678{ "epoch": 4.0, "total_flos": 2.3867532801294336e+16, "train_loss": 0.23429088592529296, "train_runtime": 606.0988, "train_samples_per_second": 0.508, "train_steps_per_second": 0.033}1234567891011121314151617181920212223242526272829303132333435363738394041424344{ "best_metric": null, "best_model_checkpoint": null, "epoch": 4.0, "eval_steps": 40, "global_step": 20, "is_hyper_param_search": false, "is_local_process_zero": true, "is_world_process_zero": true, "log_history": [ { "epoch": 2.0, "grad_norm": 0.5412699580192566, "learning_rate": 0.0001, "loss": 0.344, "step": 10 }, { "epoch": 4.0, "grad_norm": 0.285557359457016, "learning_rate": 0.0, "loss": 0.1246, "step": 20 }, { "epoch": 4.0, "step": 20, "total_flos": 2.3867532801294336e+16, "train_loss": 0.23429088592529296, "train_runtime": 606.0988, "train_samples_per_second": 0.508, "train_steps_per_second": 0.033 } ], "logging_steps": 10, "max_steps": 20, "num_input_tokens_seen": 0, "num_train_epochs": 4, "save_steps": 40, "total_flos": 2.3867532801294336e+16, "train_batch_size": 16, "trial_name": null, "trial_params": null}123version https://git-lfs.github.com/spec/v1oid sha256:d75a73478186eb85b24b38e631dac421017fb41bb95161a7d4d42aef1f2ab8f3size 4920all_results.jsonAdded+8
config.jsonAdded+32
model.safetensorsAdded+3
preprocessor_config.jsonAdded+36
train_results.jsonAdded+8
trainer_state.jsonAdded+44
training_args.binAdded+3