Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

Dadigua12581
/
custom-resnet50d

Image Classification
Transformers
Safetensors
timm
custom_resnet
resnet
custom_code
Model card Files Files and versions
xet
Community

Instructions to use Dadigua12581/custom-resnet50d with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use Dadigua12581/custom-resnet50d with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-classification", model="Dadigua12581/custom-resnet50d", trust_remote_code=True)
    pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoModelForImageClassification
    model = AutoModelForImageClassification.from_pretrained("Dadigua12581/custom-resnet50d", trust_remote_code=True, device_map="auto")
  • timm

    How to use Dadigua12581/custom-resnet50d with timm:

    import timm
    
    model = timm.create_model("hf-hub:Dadigua12581/custom-resnet50d", pretrained=True)
  • Notebooks
  • Google Colab
  • Kaggle
custom-resnet50d
103 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
Dadigua12581's picture
Dadigua12581
Align custom model files with the Transformers tutorial structure
21475ce verified 21 days ago
  • .gitattributes
    1.52 kB
    initial commit 21 days ago
  • LICENSE
    11.3 kB
    Publish pretrained ResNet50d with Transformers AutoClass support 21 days ago
  • README.md
    3.89 kB
    Align custom model files with the Transformers tutorial structure 21 days ago
  • __init__.py
    1 Bytes
    Align custom model files with the Transformers tutorial structure 21 days ago
  • config.json
    69.8 kB
    Align custom model files with the Transformers tutorial structure 21 days ago
  • configuration_resnet.py
    1.61 kB
    Align custom model files with the Transformers tutorial structure 21 days ago
  • model.safetensors
    103 MB
    xet
    Publish pretrained ResNet50d with Transformers AutoClass support 21 days ago
  • modeling_resnet.py
    2.3 kB
    Align custom model files with the Transformers tutorial structure 21 days ago
  • preprocessor_config.json
    436 Bytes
    Publish pretrained ResNet50d with Transformers AutoClass support 21 days ago
  • requirements.txt
    68 Bytes
    Publish pretrained ResNet50d with Transformers AutoClass support 21 days ago