Menu

Running Real-ESRGAN x4plus in Pure PyTorch (No basicsr) for 300 DPI 5-Ratio Print Packs
📰

Running Real-ESRGAN x4plus in Pure PyTorch (No basicsr) for 300 DPI 5-Ratio Print Packs

DEV Community: pytorch·Lê Vũ Minh Khang·about 6 hours ago
#4gUQpqWw
#devtopytorch#devto#dev#self#num_feat
Long article (1237 words) — no AI summary yet.
Reading 0:00
15s threshold

If you have tried installing the original realesrgan and basicsr packages on a modern PyTorch 2.x + CUDA 12 Google Colab runtime lately, you already know how it goes: torchvision.transforms.functional_tensor was removed years ago, basicsr breaks on import, and half your GPU session disappears into wheel-pinning gymnastics.

When building AtelierPrint Vol. 1 , a 6-piece coordinated architectural fine-art print collection, I needed true 300 DPI masters up to 7200 x 10800 px (24x36 in) across all five global frame ratios ( 2:3 , 3:4 , 4:5 , 11x14 , and ISO A2 ) with zero interpolation mush and zero pip dependency hell.

The fix turned out to be surprisingly small: the official RealESRGAN_x4plus.pth checkpoint is just a standard 23-block RRDBNet ( num_in_ch=3 , num_out_ch=3 , num_feat=64 , num_block=23 , num_grow_ch=32 ). You do not need basicsr or facexlib at all.

1.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.