sketchkit.stylization.brushstrokesengine.thirdparty.stylegan2_ada_pytorch package

Subpackages

Submodules

sketchkit.stylization.brushstrokesengine.thirdparty.stylegan2_ada_pytorch.calc_metrics module

sketchkit.stylization.brushstrokesengine.thirdparty.stylegan2_ada_pytorch.dataset_tool module

sketchkit.stylization.brushstrokesengine.thirdparty.stylegan2_ada_pytorch.dataset_tool.error(msg)[source]
sketchkit.stylization.brushstrokesengine.thirdparty.stylegan2_ada_pytorch.dataset_tool.file_ext(name: str | Path) str[source]
sketchkit.stylization.brushstrokesengine.thirdparty.stylegan2_ada_pytorch.dataset_tool.is_image_ext(fname: str | Path) bool[source]
sketchkit.stylization.brushstrokesengine.thirdparty.stylegan2_ada_pytorch.dataset_tool.make_transform(transform: str | None, output_width: int | None, output_height: int | None, resize_filter: str) Callable[[ndarray], ndarray | None][source]
sketchkit.stylization.brushstrokesengine.thirdparty.stylegan2_ada_pytorch.dataset_tool.maybe_min(a: int, b: int | None) int[source]
sketchkit.stylization.brushstrokesengine.thirdparty.stylegan2_ada_pytorch.dataset_tool.open_cifar10(tarball: str, *, max_images: int | None)[source]
sketchkit.stylization.brushstrokesengine.thirdparty.stylegan2_ada_pytorch.dataset_tool.open_dataset(source, *, max_images: int | None)[source]
sketchkit.stylization.brushstrokesengine.thirdparty.stylegan2_ada_pytorch.dataset_tool.open_dest(dest: str) Tuple[str, Callable[[str, bytes | str], None], Callable[[], None]][source]
sketchkit.stylization.brushstrokesengine.thirdparty.stylegan2_ada_pytorch.dataset_tool.open_image_folder(source_dir, *, max_images: int | None)[source]
sketchkit.stylization.brushstrokesengine.thirdparty.stylegan2_ada_pytorch.dataset_tool.open_image_zip(source, *, max_images: int | None)[source]
sketchkit.stylization.brushstrokesengine.thirdparty.stylegan2_ada_pytorch.dataset_tool.open_lmdb(lmdb_dir: str, *, max_images: int | None)[source]

sketchkit.stylization.brushstrokesengine.thirdparty.stylegan2_ada_pytorch.generate module

sketchkit.stylization.brushstrokesengine.thirdparty.stylegan2_ada_pytorch.legacy module

class sketchkit.stylization.brushstrokesengine.thirdparty.stylegan2_ada_pytorch.legacy._LegacyUnpickler(file, *, fix_imports=True, encoding='ASCII', errors='strict', buffers=())[source]

Bases: Unpickler

find_class(module, name)[source]

Return an object from a specified module.

If necessary, the module will be imported. Subclasses may override this method (e.g. to restrict unpickling of arbitrary classes and functions).

This method is called whenever a class or a function object is needed. Both arguments passed are str objects.

class sketchkit.stylization.brushstrokesengine.thirdparty.stylegan2_ada_pytorch.legacy._TFNetworkStub[source]

Bases: EasyDict

sketchkit.stylization.brushstrokesengine.thirdparty.stylegan2_ada_pytorch.legacy._collect_tf_params(tf_net)[source]
sketchkit.stylization.brushstrokesengine.thirdparty.stylegan2_ada_pytorch.legacy._populate_module_params(module, *patterns)[source]
sketchkit.stylization.brushstrokesengine.thirdparty.stylegan2_ada_pytorch.legacy.convert_tf_discriminator(tf_D)[source]
sketchkit.stylization.brushstrokesengine.thirdparty.stylegan2_ada_pytorch.legacy.convert_tf_generator(tf_G)[source]
sketchkit.stylization.brushstrokesengine.thirdparty.stylegan2_ada_pytorch.legacy.load_network_pkl(f, force_fp16=False)[source]

sketchkit.stylization.brushstrokesengine.thirdparty.stylegan2_ada_pytorch.projector_orig module

sketchkit.stylization.brushstrokesengine.thirdparty.stylegan2_ada_pytorch.style_interpolation module

sketchkit.stylization.brushstrokesengine.thirdparty.stylegan2_ada_pytorch.style_mixing module

Generate style mixing image matrix using pretrained network pickle.

sketchkit.stylization.brushstrokesengine.thirdparty.stylegan2_ada_pytorch.style_mixing.num_range(s: str) List[int][source]

Accept either a comma separated list of numbers ‘a,b,c’ or a range ‘a-c’ and return as a list of ints.

sketchkit.stylization.brushstrokesengine.thirdparty.stylegan2_ada_pytorch.train module

sketchkit.stylization.brushstrokesengine.thirdparty.stylegan2_ada_pytorch.train_orig module

Module contents