Last active
March 21, 2022 13:45
-
-
Save filipsedivy/d14d1fb6976eeed398855d1e39d3112f 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.Classifications; | |
import ai.djl.modality.cv.Image; | |
import ai.djl.repository.zoo.Criteria; | |
Criteria<Image, Classifications> criteria = Criteria.builder() | |
.setTypes(Image.class, Classifications.class) | |
.optModelPath("/model/path") | |
.optTranslator(myTranslator.build()) | |
.optEngine("TensorFlow") | |
.build(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment