jkwang28 / jkwang28/StrSR

Support resizing images smaller than 1024 during inference

Open
#7 0 comments 2 reactions 2 assignees View on GitHub

@jkwang28 is already working on this.

Since Aug 31, 2026.

  • #8 by @copilot-swe-agent — open
Dominant language
Python
Stars
52
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Hi, thank you for your excellent work!

As I understand it, StrSR is trained and evaluated at a resolution of (1024 \times 1024). However, many commonly used SR benchmarks contain images whose dimensions are smaller than 1024. Directly running inference at resolutions that differ substantially from the training resolution may affect restoration performance.

Would it be possible to add an optional preprocessing strategy to the inference code, similar to SeeSR and OSEDiff? Specifically, if the bicubic-upscaled input is smaller than (1024 \times 1024), it could first be resized to (1024 \times 1024) for model inference, and then the restored result could be resized back to the original target resolution before saving.

Thank you!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.