Skip to content

Cannot load model from model zoo as per the documentation: no match found #435

Answered by hmf
hmf asked this question in Q&A
Discussion options

You must be logged in to vote

@frankfliu I followed the example the only difference it being in Scala. Here is the code:

import ai.djl.Application
import ai.djl.basicmodelzoo.BasicModelZoo
import ai.djl.modality.Classifications.Classification
import ai.djl.modality.cv.Image
import ai.djl.modality.cv.output.DetectedObjects
import ai.djl.repository.Artifact
import ai.djl.repository.zoo.{Criteria, ModelZoo, ZooModel}
import org.tensorflow.TensorFlow

import java.util
    val criteria: Criteria[Image, Classification] = Criteria.builder()
      .optApplication(Application.CV.IMAGE_CLASSIFICATION)
      .setTypes(classOf[Image], classOf[Classification])
      //.optFilter("layers", "50")
      //.optFilter("flavor", "v1")

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@zachgk
Comment options

@hmf
Comment options

@zachgk
Comment options

Answer selected by hmf
Comment options

You must be logged in to vote
2 replies
@zachgk
Comment options

@hmf
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants