Instructions to use Hilbs/Packaging-Model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Hilbs/Packaging-Model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="Hilbs/Packaging-Model") 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/Packaging-Model") model = AutoModelForImageClassification.from_pretrained("Hilbs/Packaging-Model", 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+34
- preprocessor_config.jsonAdded+22
- pytorch_model.binAdded+3
- train_results.jsonAdded+8
- trainer_state.jsonAdded+43
- training_args.binAdded+3
12345678{ "epoch": 4.0, "total_flos": 3.905631281199514e+16, "train_loss": 0.34820668725296855, "train_runtime": 967.8691, "train_samples_per_second": 0.521, "train_steps_per_second": 0.033}12345678910111213141516171819202122232425262728293031323334{ "_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": "box", "1": "empty", "2": "polymailer" }, "image_size": 224, "initializer_range": 0.02, "intermediate_size": 3072, "label2id": { "box": "0", "empty": "1", "polymailer": "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.29.2"}12345678910111213141516171819202122{ "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 }}123version https://git-lfs.github.com/spec/v1oid sha256:ab774424513070cea0c5372eb774d0e5f8ed9af30eb1fa3f2547653f53df26c7size 34326903712345678{ "epoch": 4.0, "total_flos": 3.905631281199514e+16, "train_loss": 0.34820668725296855, "train_runtime": 967.8691, "train_samples_per_second": 0.521, "train_steps_per_second": 0.033}12345678910111213141516171819202122232425262728293031323334353637383940414243{ "best_metric": null, "best_model_checkpoint": null, "epoch": 4.0, "global_step": 32, "is_hyper_param_search": false, "is_local_process_zero": true, "is_world_process_zero": true, "log_history": [ { "epoch": 1.25, "learning_rate": 0.0001375, "loss": 0.737, "step": 10 }, { "epoch": 2.5, "learning_rate": 7.500000000000001e-05, "loss": 0.2549, "step": 20 }, { "epoch": 3.75, "learning_rate": 1.25e-05, "loss": 0.1051, "step": 30 }, { "epoch": 4.0, "step": 32, "total_flos": 3.905631281199514e+16, "train_loss": 0.34820668725296855, "train_runtime": 967.8691, "train_samples_per_second": 0.521, "train_steps_per_second": 0.033 } ], "max_steps": 32, "num_train_epochs": 4, "total_flos": 3.905631281199514e+16, "trial_name": null, "trial_params": null}123version https://git-lfs.github.com/spec/v1oid sha256:68bb8c2d47e87332455df33e52075be6ac0ee04daa3f6fd8e6074c2a72002aacsize 3899all_results.jsonAdded+8
config.jsonAdded+34
preprocessor_config.jsonAdded+22
pytorch_model.binAdded+3
train_results.jsonAdded+8
trainer_state.jsonAdded+43
training_args.binAdded+3