Instructions to use bombshelll/swin-brain-modality-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bombshelll/swin-brain-modality-classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="bombshelll/swin-brain-modality-classification") 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("bombshelll/swin-brain-modality-classification") model = AutoModelForImageClassification.from_pretrained("bombshelll/swin-brain-modality-classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse filesFiles changed (4)
- all_results.jsonAdded+13
- eval_results.jsonAdded+8
- train_results.jsonAdded+8
- trainer_state.jsonAdded+67
12345678910111213{ "epoch": 1.0, "eval_accuracy": 0.9904761904761905, "eval_loss": 0.08451159298419952, "eval_runtime": 1.8446, "eval_samples_per_second": 113.843, "eval_steps_per_second": 3.795, "total_flos": 4.697913185667072e+16, "train_loss": 0.6861413399378459, "train_runtime": 27.5947, "train_samples_per_second": 342.458, "train_steps_per_second": 2.718}12345678{ "epoch": 1.0, "eval_accuracy": 0.9904761904761905, "eval_loss": 0.08451159298419952, "eval_runtime": 1.8446, "eval_samples_per_second": 113.843, "eval_steps_per_second": 3.795}12345678{ "epoch": 1.0, "total_flos": 4.697913185667072e+16, "train_loss": 0.6861413399378459, "train_runtime": 27.5947, "train_samples_per_second": 342.458, "train_steps_per_second": 2.718}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667{ "best_metric": 0.9904761904761905, "best_model_checkpoint": "/kaggle/working/swin-brain-modality-classification/checkpoint-15", "epoch": 1.0, "eval_steps": 500, "global_step": 15, "is_hyper_param_search": false, "is_local_process_zero": true, "is_world_process_zero": true, "log_history": [ { "epoch": 0.6666666666666666, "grad_norm": 12.149126052856445, "learning_rate": 4.850746268656717e-05, "loss": 0.9131, "step": 10 }, { "epoch": 1.0, "eval_accuracy": 0.9904761904761905, "eval_loss": 0.08451159298419952, "eval_runtime": 1.8249, "eval_samples_per_second": 115.074, "eval_steps_per_second": 3.836, "step": 15 }, { "epoch": 1.0, "step": 15, "total_flos": 4.697913185667072e+16, "train_loss": 0.6861413399378459, "train_runtime": 27.5947, "train_samples_per_second": 342.458, "train_steps_per_second": 2.718 } ], "logging_steps": 10, "max_steps": 75, "num_input_tokens_seen": 0, "num_train_epochs": 5, "save_steps": 500, "stateful_callbacks": { "CustomEarlyStoppingCallback": { "args": { "early_stopping_patience": 1, "early_stopping_threshold": 0.0 }, "attributes": { "early_stopping_patience_counter": 0 } }, "TrainerControl": { "args": { "should_epoch_stop": false, "should_evaluate": false, "should_log": false, "should_save": true, "should_training_stop": true }, "attributes": {} } }, "total_flos": 4.697913185667072e+16, "train_batch_size": 32, "trial_name": null, "trial_params": null}all_results.jsonAdded+13
eval_results.jsonAdded+8
train_results.jsonAdded+8
trainer_state.jsonAdded+67