sketchkit.stylization.brushstrokesengine.forger.experimental.autoenc package¶
Submodules¶
sketchkit.stylization.brushstrokesengine.forger.experimental.autoenc.ae_conv module¶
sketchkit.stylization.brushstrokesengine.forger.experimental.autoenc.base module¶
- class sketchkit.stylization.brushstrokesengine.forger.experimental.autoenc.base.BaseGeoEncoder[source]¶
Bases:
Module,ABC- _abc_impl = <_abc._abc_data object>¶
- encode(geom, res=None)[source]¶
Does appropriate pre-processing and encodes the geometry into the representation that stylegan can ingest.
@param geom: B x 1 x H x W 0..1 black on white float tensors of geometry images @param res: resolutions to provide encodings for @return: list of feature maps
- abstractmethod feature_channels(res=0)[source]¶
@param res: 0 - bottleneck, 1 - one layer up in the decoder, 2 - one layer up @return:
- featuremap_resolution(input_res, res=0)[source]¶
@param input_res: @param res: 0 - bottleneck, 1 - one layer up in the decoder, 2 - one layer up @return:
- preprocess(x)[source]¶
@param x: B x 1 X H x W binary black stroke on white 0..1 torch float tensor @return: B x 1 x H x W torch float tensor