Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

jsli96
/
ResNet-18-1

Image Classification
Transformers
PyTorch
resnet
Model card Files Files and versions
xet
Community
1

Instructions to use jsli96/ResNet-18-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use jsli96/ResNet-18-1 with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-classification", model="jsli96/ResNet-18-1")
    pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")
    # Load model directly
    from transformers import AutoImageProcessor, AutoModelForImageClassification
    
    processor = AutoImageProcessor.from_pretrained("jsli96/ResNet-18-1")
    model = AutoModelForImageClassification.from_pretrained("jsli96/ResNet-18-1")
  • Notebooks
  • Google Colab
  • Kaggle
ResNet-18-1
90.4 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
SFconvertbot's picture
SFconvertbot
Adding `safetensors` variant of this model
3919432 verified over 1 year ago
  • .gitattributes
    1.48 kB
    initial commit about 3 years ago
  • README.md
    40 Bytes
    Create README.md about 3 years ago
  • all_results.json
    350 Bytes
    init about 3 years ago
  • config.json
    9.62 kB
    init about 3 years ago
  • eval_results.json
    204 Bytes
    init about 3 years ago
  • model.safetensors
    45.2 MB
    xet
    Adding `safetensors` variant of this model over 1 year ago
  • preprocessor_config.json
    410 Bytes
    init about 3 years ago
  • pytorch_model.bin
    45.2 MB
    xet
    init about 3 years ago
  • train_results.json
    168 Bytes
    init about 3 years ago
  • trainer_state.json
    18.7 kB
    init about 3 years ago
  • training_args.bin

    Detected Pickle imports (6)

    • "transformers.trainer_utils.IntervalStrategy",
    • "transformers.training_args.OptimizerNames",
    • "transformers.trainer_utils.SchedulerType",
    • "torch.device",
    • "transformers.training_args.TrainingArguments",
    • "transformers.trainer_utils.HubStrategy"

    How to fix it?

    3.52 kB
    xet
    init about 3 years ago