How to use hf-internal-testing/tiny-random-Swin2SRForImageSuperResolution with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-to-image", model="hf-internal-testing/tiny-random-Swin2SRForImageSuperResolution")
# Load model directly from transformers import AutoImageProcessor, AutoModelForImageToImage processor = AutoImageProcessor.from_pretrained("hf-internal-testing/tiny-random-Swin2SRForImageSuperResolution") model = AutoModelForImageToImage.from_pretrained("hf-internal-testing/tiny-random-Swin2SRForImageSuperResolution")
Upload tiny models for Swin2SRForImageSuperResolution
Β· Sign up or log in to comment