bctnry/sanime2x-2k
Viewer • Updated • 2k • 21
requires python (tested under 3.14) and:
torchtorchvisionPillowmain.py for plain CNN w/ global residual link and main_resnet.py for ResNet.part_{i}/{id}.jpeg structure unchanged.dataloader if 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.py and enlarge_resnet.py are example code of how you can use the 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.
code & model is in cc0/public domain.