FlameF0X / NanoSR-6x

huggingface.co
Total runs: 0
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: May 07 2026
image-to-image

Introduction of NanoSR-6x

Model Details of NanoSR-6x

NanoSR-6x

I'm to lazy to make the model card and too lazy to put ai to make it.

image

image

Usage

import os
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
from PIL import Image
from huggingface_hub import hf_hub_download
from tensorflow.keras import layers

# --- Configuration ---
HF_REPO_ID = "FlameF0X/NanoSR-6x"
MODEL_FILENAME = "NanoSR-6x_v1.h5"
UPSCALE_FACTOR = 6

def build_nanosr(upscale_factor, channels=3):
    inputs = layers.Input(shape=(None, None, channels))
    x = layers.Conv2D(64, 5, padding="same", activation="relu", kernel_initializer="he_normal")(inputs)
    x = layers.Conv2D(64, 3, padding="same", activation="relu", kernel_initializer="he_normal")(x)
    x = layers.Conv2D(32, 3, padding="same", activation="relu", kernel_initializer="he_normal")(x)
    x = layers.Conv2D(channels * (upscale_factor ** 2), 3, padding="same", kernel_initializer="he_normal")(x)
    outputs = layers.Lambda(lambda t: tf.nn.depth_to_space(t, upscale_factor), name="pixel_shuffle")(x)
    return tf.keras.Model(inputs, outputs, name="NanoSR-6x")

def run_inference(image_path, output_path="upscaled_result.png"):
    print(f"Downloading weights from {HF_REPO_ID}...")
    checkpoint_path = hf_hub_download(repo_id=HF_REPO_ID, filename=MODEL_FILENAME)

    # 2. Build and Load Model
    model = build_nanosr(upscale_factor=UPSCALE_FACTOR)
    model.load_weights(checkpoint_path)
    print("Model loaded successfully.")

    # 3. Load and Preprocess Image
    img = Image.open(image_path).convert("RGB")
    low_res = np.array(img).astype(np.float32) / 255.0
    input_tensor = tf.expand_dims(low_res, 0)

    # 4. Predict
    print("Upscaling...")
    prediction = model.predict(input_tensor)[0]
    prediction = tf.clip_by_value(prediction, 0.0, 1.0)
    
    # 5. Save and Show
    final_img = tf.keras.preprocessing.image.array_to_img(prediction)
    final_img.save(output_path)
    
    plt.figure(figsize=(12, 6))
    plt.subplot(1, 2, 1)
    plt.title("Original (Low Res)")
    plt.imshow(low_res)
    plt.axis("off")
    
    plt.subplot(1, 2, 2)
    plt.title(f"NanoSR {UPSCALE_FACTOR}x")
    plt.imshow(prediction)
    plt.axis("off")
    
    plt.show()
    print(f"Result saved to {output_path}")

if __name__ == "__main__":
    run_inference("your_test_image.png")
    pass

Runs of FlameF0X NanoSR-6x on huggingface.co

0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About NanoSR-6x huggingface.co Model

More NanoSR-6x license Visit here:

https://choosealicense.com/licenses/apache-2.0

NanoSR-6x huggingface.co

NanoSR-6x huggingface.co is an AI model on huggingface.co that provides NanoSR-6x's model effect (), which can be used instantly with this FlameF0X NanoSR-6x model. huggingface.co supports a free trial of the NanoSR-6x model, and also provides paid use of the NanoSR-6x. Support call NanoSR-6x model through api, including Node.js, Python, http.

FlameF0X NanoSR-6x online free

NanoSR-6x huggingface.co is an online trial and call api platform, which integrates NanoSR-6x's modeling effects, including api services, and provides a free online trial of NanoSR-6x, you can try NanoSR-6x online for free by clicking the link below.

FlameF0X NanoSR-6x online free url in huggingface.co:

https://huggingface.co/FlameF0X/NanoSR-6x

NanoSR-6x install

NanoSR-6x is an open source model from GitHub that offers a free installation service, and any user can find NanoSR-6x on GitHub to install. At the same time, huggingface.co provides the effect of NanoSR-6x install, users can directly use NanoSR-6x installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

NanoSR-6x install url in huggingface.co:

https://huggingface.co/FlameF0X/NanoSR-6x

Url of NanoSR-6x

NanoSR-6x huggingface.co Url

Provider of NanoSR-6x huggingface.co

FlameF0X
ORGANIZATIONS

Other API from FlameF0X

huggingface.co

Total runs: 164
Run Growth: 138
Growth Rate: 84.15%
Updated:July 17 2026
huggingface.co

Total runs: 144
Run Growth: 49
Growth Rate: 34.03%
Updated:May 26 2026
huggingface.co

Total runs: 114
Run Growth: -76
Growth Rate: -66.67%
Updated:December 01 2025
huggingface.co

Total runs: 112
Run Growth: 16
Growth Rate: 14.29%
Updated:October 31 2025
huggingface.co

Total runs: 109
Run Growth: 0
Growth Rate: 0.00%
Updated:July 25 2026
huggingface.co

Total runs: 70
Run Growth: 70
Growth Rate: 100.00%
Updated:December 03 2025
huggingface.co

Total runs: 62
Run Growth: 12
Growth Rate: 19.35%
Updated:November 29 2025
huggingface.co

Total runs: 50
Run Growth: 47
Growth Rate: 94.00%
Updated:June 29 2025
huggingface.co

Total runs: 44
Run Growth: 11
Growth Rate: 25.00%
Updated:November 25 2025
huggingface.co

Total runs: 39
Run Growth: -135
Growth Rate: -346.15%
Updated:October 23 2025
huggingface.co

Total runs: 36
Run Growth: 20
Growth Rate: 55.56%
Updated:February 23 2026
huggingface.co

Total runs: 30
Run Growth: -254
Growth Rate: -846.67%
Updated:May 20 2026
huggingface.co

Total runs: 21
Run Growth: -10
Growth Rate: -47.62%
Updated:October 17 2025
huggingface.co

Total runs: 16
Run Growth: 0
Growth Rate: 0.00%
Updated:December 19 2025
huggingface.co

Total runs: 14
Run Growth: -272
Growth Rate: -1942.86%
Updated:May 15 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 06 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 29 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:May 15 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 31 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:July 17 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:May 15 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 31 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:April 19 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:April 25 2026