Instructions to use calvorith/pneumonia_chest_xray_dectection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use calvorith/pneumonia_chest_xray_dectection with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="calvorith/pneumonia_chest_xray_dectection") 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("calvorith/pneumonia_chest_xray_dectection") model = AutoModelForImageClassification.from_pretrained("calvorith/pneumonia_chest_xray_dectection", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Fagboye Caleb commited on
Upload folder using huggingface_hub
Browse filesFiles changed (12)
- checkpoint-294/config.jsonAdded+32
- checkpoint-294/optimizer.ptAdded+3
- checkpoint-294/preprocessor_config.jsonAdded+22
- checkpoint-294/pytorch_model.binAdded+3
- checkpoint-294/rng_state.pthAdded+3
- checkpoint-294/scheduler.ptAdded+3
- checkpoint-294/trainer_state.jsonAdded+34
- checkpoint-294/training_args.binAdded+3
- config.jsonAdded+32
- preprocessor_config.jsonAdded+22
- pytorch_model.binAdded+3
- training_args.binAdded+3
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": "NORMAL", "1": "PNEUMONIA" }, "image_size": 224, "initializer_range": 0.02, "intermediate_size": 3072, "label2id": { "NORMAL": 0, "PNEUMONIA": 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.30.2"}123version https://git-lfs.github.com/spec/v1oid sha256:88d83de6a810bab01d6776f98ceea1a2e2ce7d70f3f9bb122c997824930eb681size 68651891712345678910111213141516171819202122{ "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:792807c770f7abb1d47309bbe9b71827170512bea1ee47a579bcdc7cdeeeae77size 343268717123version https://git-lfs.github.com/spec/v1oid sha256:278d342e43e2b55f0070f38099433f0b89a0f9681b4ec22c33993cc26037ff0bsize 14575123version https://git-lfs.github.com/spec/v1oid sha256:a95a0398c2a1a12665fc1048079cd02cf49d73f6d5705019455b5a94946c2f0dsize 62712345678910111213141516171819202122232425262728293031323334{ "best_metric": 0.1313992589712143, "best_model_checkpoint": "chest_xray_pneumonia_detection/checkpoint-294", "epoch": 2.0, "global_step": 294, "is_hyper_param_search": false, "is_local_process_zero": true, "is_world_process_zero": true, "log_history": [ { "epoch": 1.0, "eval_accuracy": 0.9607508532423208, "eval_loss": 0.1633928269147873, "eval_runtime": 29.9458, "eval_samples_per_second": 39.137, "eval_steps_per_second": 9.784, "step": 147 }, { "epoch": 2.0, "eval_accuracy": 0.9701365187713311, "eval_loss": 0.1313992589712143, "eval_runtime": 29.6561, "eval_samples_per_second": 39.52, "eval_steps_per_second": 9.88, "step": 294 } ], "max_steps": 294, "num_train_epochs": 2, "total_flos": 7.259449587094979e+17, "trial_name": null, "trial_params": null}123version https://git-lfs.github.com/spec/v1oid sha256:d382a6d54b34e8c72ec4223c46989b15174609ba6b192b5ffc16370deb25c527size 38991234567891011121314151617181920212223242526272829303132{ "_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": "NORMAL", "1": "PNEUMONIA" }, "image_size": 224, "initializer_range": 0.02, "intermediate_size": 3072, "label2id": { "NORMAL": 0, "PNEUMONIA": 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.30.2"}12345678910111213141516171819202122{ "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:792807c770f7abb1d47309bbe9b71827170512bea1ee47a579bcdc7cdeeeae77size 343268717123version https://git-lfs.github.com/spec/v1oid sha256:d382a6d54b34e8c72ec4223c46989b15174609ba6b192b5ffc16370deb25c527size 3899checkpoint-294/config.jsonAdded+32
checkpoint-294/optimizer.ptAdded+3
checkpoint-294/preprocessor_config.jsonAdded+22
checkpoint-294/pytorch_model.binAdded+3
checkpoint-294/rng_state.pthAdded+3
checkpoint-294/scheduler.ptAdded+3
checkpoint-294/trainer_state.jsonAdded+34
checkpoint-294/training_args.binAdded+3
config.jsonAdded+32
preprocessor_config.jsonAdded+22
pytorch_model.binAdded+3
training_args.binAdded+3