Created
March 21, 2022 13:42
-
-
Save filipsedivy/e8ca4ef2422e4dc73b1c225f9b2a30c4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ai.djl.modality.cv.transform.Resize; | |
import ai.djl.modality.cv.transform.ToTensor; | |
import ai.djl.modality.cv.translator.ImageClassificationTranslator; | |
ImageClassificationTranslator.Builder myTranslator = ImageClassificationTranslator.builder() | |
.addTransform(new Resize(224, 224)) | |
.addTransform(new ToTensor()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment