Downloads · 30 days
0
Felguk/Felguk-upscaler-all
Felguk-upscaler-all is a machine learning model from Felguk. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Felguk-upscaler-all is a powerful image upscaling tool built on top of the Hugging Face Transformers library. It leverages state-of-the-art models to enhance the resolution and quality of images, making it ideal for v…
Downloads · 30 days
0
Access
Public
Updated Jan 18, 2025
Repo size
—
Likes
0
Public
Click a slice to open those files.
.md1.5 KB · 50%
From the Hugging Face model README
Felguk-upscaler-all is a powerful image upscaling tool built on top of the Hugging Face Transformers library. It leverages state-of-the-art models to enhance the resolution and quality of images, making it ideal for various applications such as photo editing, medical imaging, and more.
To get started with Felguk-upscaler-all, you need to have Python 3.6 or higher installed on your system. You can install the required dependencies using pip:
pip install transformers
pip install torch # Ensure you have PyTorch installed
To use this model in transformers Example
from transformers import AutoModelForImageSuperResolution, AutoFeatureExtractor
from PIL import Image
import requests
# Load the feature extractor and model
feature_extractor = AutoFeatureExtractor.from_pretrained("Felguk/upscaler-all")
model = AutoModelForImageSuperResolution.from_pretrained("Felguk/upscaler-all")
# Load an image from URL
url = "http://example.com/sample-image.jpg"
image = Image.open(requests.get(url, stream=True).raw)
# Preprocess the image and run inference
inputs = feature_extractor(images=image, return_tensors="pt")
outputs = model(**inputs)
# Post-process the output to get the upscaled image
upscaled_image = feature_extractor.post_process(outputs, size=(256, 256))[0]
upscaled_image.show()