sketchkit.colorization.manga_ninja.manganinja.annotator.lineart package

Module contents

class sketchkit.colorization.manga_ninja.manganinja.annotator.lineart.BatchLineartDetector(annotator_ckpts_path)[source]

Bases: object

_download_file(url, save_path)[source]
load_model(name)[source]
to(device, dtype)[source]
class sketchkit.colorization.manga_ninja.manganinja.annotator.lineart.Generator(input_nc, output_nc, n_residual_blocks=9, sigmoid=True)[source]

Bases: Module

forward(x, cond=None)[source]

Define the computation performed at every call.

Should be overridden by all subclasses.

Note

Although the recipe for forward pass needs to be defined within this function, one should call the Module instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.

class sketchkit.colorization.manga_ninja.manganinja.annotator.lineart.LineartDetector(annotator_ckpts_path)[source]

Bases: object

load_model(name)[source]
class sketchkit.colorization.manga_ninja.manganinja.annotator.lineart.ResidualBlock(in_features)[source]

Bases: Module

forward(x)[source]

Define the computation performed at every call.

Should be overridden by all subclasses.

Note

Although the recipe for forward pass needs to be defined within this function, one should call the Module instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.