镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Can we make ratio based upscale instead of 2x or 4x always? #478

Open

Description

@FurkanGozukara

Can we make ratio based upscale instead of 2x or 4x always?

if so how a simple code example please for example for this model

RealESRGAN_x4plus.safetensors

Activity

  1. pokepress commented on Jun 29, 2025

    @pokepress
    Contributor

    Model architectures are generally built around integer-based scales (1x, 2x, 3x, 4x, etc.), so that's the typical way of doing it. Generally the recommendation for a non-integer scale is to use a model closest to that ratio and then scale up/down.

  2. FurkanGozukara commented on Jun 29, 2025

    @FurkanGozukara
    Author

    Model architectures are generally built around integer-based scales (1x, 2x, 3x, 4x, etc.), so that's the typical way of doing it. Generally the recommendation for a non-integer scale is to use a model closest to that ratio and then scale up/down.

    thanks so models cant do ratio and can only do whatever they are trained for

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions