Er0manga, in TorchScript

Er0manga's censor bar models, exported to TorchScript. Nothing was retrained.

File Model Source
er0manga-seg.pt Er0mangaSeg (ConvNeXt-T + UPerNet), finds dark censor bars on colour and black and white pages convnext_1024_iter_400.pth
er0manga-inpaint.pt Er0mangaInpaint (LaMa, 9 FFC blocks, fine-tuned on uncensored manga), redraws what is under the bars 00-30-09/models/best.ckpt

The checkpoints come from Er0manga's demo image on Docker Hub, er0manga/er0mangademo (layers sha256:75cefe50d664b47b49a814678cdc629e69fd2f24e4030e271db6f9cbcf50f78a and sha256:ffefd7bb80dd875765b5e7a17a2cb24af317bd2af472262f89291f69d061c5a3), since the mega.nz links in the repositories' READMEs have been taken down.

er0manga-seg.pt takes a page [1, 3, H, W] (RGB, 0 to 255) and returns the probability [1, 1, H, W] that each pixel is under a bar. It scales the page to a long edge of 1024 inside, as the repository's demo does.

er0manga-inpaint.pt takes a crop [1, 3, H, W] (RGB, 0 to 1) and a mask [1, 1, H, W] (1 under a bar) and returns the crop with the masked pixels redrawn.

The code of both repositories (at 2f1d5210459c751ed716b4887be906dffbb4f034 and e2cc41730c9a5be7281558022b99d3a528d74ac0) is Apache-2.0. The weights were published by their author through the links above, with no separate licence stated.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support