Instructions to use ProbeX/Model-J__ResNet__model_idx_0539 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ProbeX/Model-J__ResNet__model_idx_0539 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="ProbeX/Model-J__ResNet__model_idx_0539") 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("ProbeX/Model-J__ResNet__model_idx_0539") model = AutoModelForImageClassification.from_pretrained("ProbeX/Model-J__ResNet__model_idx_0539", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse filesFiles changed (5)
- config.jsonAdded+145
- model.safetensorsAdded+3
- preprocessor_config.jsonAdded+22
- trainer_state.jsonAdded+97
- training_args.binAdded+3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145{ "_name_or_path": "microsoft/resnet-101", "architectures": [ "ResNetForImageClassification" ], "depths": [ 3, 4, 23, 3 ], "downsample_in_bottleneck": false, "downsample_in_first_stage": false, "embedding_size": 64, "hidden_act": "relu", "hidden_sizes": [ 256, 512, 1024, 2048 ], "id2label": { "0": "LABEL_0", "1": "LABEL_1", "2": "LABEL_2", "3": "LABEL_3", "4": "LABEL_4", "5": "LABEL_5", "6": "LABEL_6", "7": "LABEL_7", "8": "LABEL_8", "9": "LABEL_9", "10": "LABEL_10", "11": "LABEL_11", "12": "LABEL_12", "13": "LABEL_13", "14": "LABEL_14", "15": "LABEL_15", "16": "LABEL_16", "17": "LABEL_17", "18": "LABEL_18", "19": "LABEL_19", "20": "LABEL_20", "21": "LABEL_21", "22": "LABEL_22", "23": "LABEL_23", "24": "LABEL_24", "25": "LABEL_25", "26": "LABEL_26", "27": "LABEL_27", "28": "LABEL_28", "29": "LABEL_29", "30": "LABEL_30", "31": "LABEL_31", "32": "LABEL_32", "33": "LABEL_33", "34": "LABEL_34", "35": "LABEL_35", "36": "LABEL_36", "37": "LABEL_37", "38": "LABEL_38", "39": "LABEL_39", "40": "LABEL_40", "41": "LABEL_41", "42": "LABEL_42", "43": "LABEL_43", "44": "LABEL_44", "45": "LABEL_45", "46": "LABEL_46", "47": "LABEL_47", "48": "LABEL_48", "49": "LABEL_49" }, "label2id": { "LABEL_0": 0, "LABEL_1": 1, "LABEL_10": 10, "LABEL_11": 11, "LABEL_12": 12, "LABEL_13": 13, "LABEL_14": 14, "LABEL_15": 15, "LABEL_16": 16, "LABEL_17": 17, "LABEL_18": 18, "LABEL_19": 19, "LABEL_2": 2, "LABEL_20": 20, "LABEL_21": 21, "LABEL_22": 22, "LABEL_23": 23, "LABEL_24": 24, "LABEL_25": 25, "LABEL_26": 26, "LABEL_27": 27, "LABEL_28": 28, "LABEL_29": 29, "LABEL_3": 3, "LABEL_30": 30, "LABEL_31": 31, "LABEL_32": 32, "LABEL_33": 33, "LABEL_34": 34, "LABEL_35": 35, "LABEL_36": 36, "LABEL_37": 37, "LABEL_38": 38, "LABEL_39": 39, "LABEL_4": 4, "LABEL_40": 40, "LABEL_41": 41, "LABEL_42": 42, "LABEL_43": 43, "LABEL_44": 44, "LABEL_45": 45, "LABEL_46": 46, "LABEL_47": 47, "LABEL_48": 48, "LABEL_49": 49, "LABEL_5": 5, "LABEL_6": 6, "LABEL_7": 7, "LABEL_8": 8, "LABEL_9": 9 }, "layer_type": "bottleneck", "model_type": "resnet", "num_channels": 3, "out_features": [ "stage4" ], "out_indices": [ 4 ], "problem_type": "single_label_classification", "stage_names": [ "stem", "stage1", "stage2", "stage3", "stage4" ], "torch_dtype": "float32", "transformers_version": "4.44.0"}123version https://git-lfs.github.com/spec/v1oid sha256:ca23b6fe21786f86ae8b15399f7e0a6fdb0eb75a2abbfd57f9894083247a0910size 17091612012345678910111213141516171819202122{ "crop_pct": 0.875, "do_normalize": true, "do_rescale": true, "do_resize": true, "image_mean": [ 0.485, 0.456, 0.406 ], "image_processor_type": "ConvNextImageProcessor", "image_std": [ 0.229, 0.224, 0.225 ], "resample": 3, "rescale_factor": 0.00392156862745098, "size": { "shortest_edge": 224 }}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697{ "best_metric": 0.8746666666666667, "best_model_checkpoint": "./resnet_finetuned_models_dataset/CIFAR100/50_from_100/microsoft_resnet-101/model_idx_0539/checkpoints/checkpoint-1332", "epoch": 4.0, "eval_steps": 500, "global_step": 1332, "is_hyper_param_search": false, "is_local_process_zero": true, "is_world_process_zero": true, "log_history": [ { "epoch": 1.0, "grad_norm": 113.79971313476562, "learning_rate": 7e-05, "loss": 3.4037, "step": 333 }, { "epoch": 1.0, "eval_accuracy": 0.5666666666666667, "eval_loss": 2.08650803565979, "eval_runtime": 9.3394, "eval_samples_per_second": 401.524, "eval_steps_per_second": 6.317, "step": 333 }, { "epoch": 2.0, "grad_norm": 48.82363510131836, "learning_rate": 7e-05, "loss": 1.1835, "step": 666 }, { "epoch": 2.0, "eval_accuracy": 0.8098666666666666, "eval_loss": 0.6989992260932922, "eval_runtime": 9.2225, "eval_samples_per_second": 406.614, "eval_steps_per_second": 6.397, "step": 666 }, { "epoch": 3.0, "grad_norm": 63.07221603393555, "learning_rate": 7e-05, "loss": 0.6322, "step": 999 }, { "epoch": 3.0, "eval_accuracy": 0.8514666666666667, "eval_loss": 0.5104021430015564, "eval_runtime": 9.2757, "eval_samples_per_second": 404.283, "eval_steps_per_second": 6.361, "step": 999 }, { "epoch": 4.0, "grad_norm": 66.16280364990234, "learning_rate": 7e-05, "loss": 0.4639, "step": 1332 }, { "epoch": 4.0, "eval_accuracy": 0.8746666666666667, "eval_loss": 0.43885722756385803, "eval_runtime": 9.3881, "eval_samples_per_second": 399.44, "eval_steps_per_second": 6.285, "step": 1332 } ], "logging_steps": 500, "max_steps": 1332, "num_input_tokens_seen": 0, "num_train_epochs": 4, "save_steps": 500, "stateful_callbacks": { "TrainerControl": { "args": { "should_epoch_stop": false, "should_evaluate": false, "should_log": false, "should_save": true, "should_training_stop": true }, "attributes": {} } }, "total_flos": 3.2705716958208e+18, "train_batch_size": 64, "trial_name": null, "trial_params": null}123version https://git-lfs.github.com/spec/v1oid sha256:cf5b77004c3e7d772e7acb1aa95eab09f5758417c2d19fb76d07c0ff957c26cdsize 5368config.jsonAdded+145
model.safetensorsAdded+3
preprocessor_config.jsonAdded+22
trainer_state.jsonAdded+97
training_args.binAdded+3