public final class BigGANTranslator extends java.lang.Object implements NoBatchifyTranslator<int[],Image[]>
Translator that provides preprocessing and postprocessing for BigGAN.| Constructor and Description |
|---|
BigGANTranslator(float truncation)
Constructs a translator for BigGAN.
|
| Modifier and Type | Method and Description |
|---|---|
NDList |
processInput(TranslatorContext ctx,
int[] input)
Processes the input and converts it to NDList.
|
Image[] |
processOutput(TranslatorContext ctx,
NDList list)
Processes the output NDList to the corresponding output object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBatchifierpreparepublic BigGANTranslator(float truncation)
truncation - value used to scale the normal seed for BigGANpublic Image[] processOutput(TranslatorContext ctx, NDList list)
processOutput in interface PostProcessor<Image[]>ctx - the toolkit used for post-processinglist - the output NDList after inferencepublic NDList processInput(TranslatorContext ctx, int[] input) throws java.lang.Exception
processInput in interface PreProcessor<int[]>ctx - the toolkit for creating the input NDArrayinput - the input objectNDList after pre-processingjava.lang.Exception - if an error occurs during processing input