📚 Model Training Principles - Sirosky/Upscale-Hub GitHub Wiki

This section provides an overview of the guiding principles I follow while training my models. It should give a sense of whether these are the right models for you, and what sets my models apart from others.

Balanced Sharpness: While my models deblur and sharpen the input, they aren't the sharpest ones available. This is intentional-- the models aim to produce a natural-looking upscale, as if the result was something natively produced by the studio. In addition, oversharpening tends to produce undesireable artifacts.

image

Roof tiles so sharp that you can cut yourself on them.


Line Art Retention: Retaining crisp line art is key to making anime upscales look pleasing to the eye. Some models, even those trained on modern anime, can produce "hallowed" lines (example below) at higher resolutions. My models are trained to retain / enhance line art, and of course, avoid the hallowed line effect.

image

Note how the lines here don't seem solid. Sometimes, it's an artistic decision. But this example is the model not properly handling line art after oversharpening. 🤢


Detail Retention: This largely speaks for itself-- you don't want a model that nukes textures and/or destroys details. While it's not always possible to achieve flawless detail retention (especially with models that have more-aggressive clean-up), detail retention is something that my models generally excel in.

image

Where did the fence go?


Compression Clean-up: This is self-explanatory as well. When upscaling, the model should clean up compression artifacts present in the source (haloing, noise, chroma bleed, etc.) rather than upscale the artifacts along with the rest of the picture. However, it is also important to not go overboard, as doing so comes at the expense of detail retention.

imageimage

On the left, an example of a model that upscaled but didn't fix the white haloing, vs. on the right, AniDVD which upscaled and cleaned haloing.


Depth of Field and Intentional Blur Retention: DOF/blur effects are extremely common in modern anime, and present even in older anime. While it can be tempting to sharpen the crap out of everything on the screen, such an approach can create odd-looking results when it brings into focus items that should be out of focus. Aside from AniScaleV1, which is the first model I ever released, all my models are trained to handle blur effects appropriately.

imageimage

Some things are better left blurred...


Upscaling Artifacts: Some models produce upscaling artifacts-- blemishes on the image generated by the model during the upscaling process. These can vary from annoying to hardly noticeable, but in my book, it's best to avoid generating artifacts to begin with!

imageimage

An example of a fairly subtle artifact-- the white glow generated at the intersection of the two lines.


Use Common Sense!

image