sanime2x
requires python (tested under 3.14) and:
torchtorchvisionPillow
training
- edit & run
main.pyfor plain CNN w/ global residual link andmain_resnet.pyfor ResNet. - definitely download sanime2x-2k, unzip & change the path. the dataloader script expects the
part_{i}/{id}.jpegstructure unchanged. - use
dataloaderif you don't want to pre-load all the images into the memories (but are willing to take the speed penalty of decoding JPEG images on the fly) enlarge.pyandenlarge_resnet.pyare example code of how you can use the trained models.
trained models
you're expected to train it yourself (i don't know how good the thingy you need it to be), but trained models can be found at HuggingFase.
license
code & model is in cc0/public domain.