All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.deeplearning4j.zoo.util.darknet.DarknetLabels Maven / Gradle / Ivy

There is a newer version: 1.0.0-M2.1
Show newest version
package org.deeplearning4j.zoo.util.darknet;

import org.deeplearning4j.zoo.util.BaseLabels;

import java.io.IOException;

/**
 * Helper class that returns label descriptions for Darknet models trained with ImageNet.
 *
 * @author saudet
 */
public class DarknetLabels extends BaseLabels {

    /** Calls {@code this(true)}. */
    public DarknetLabels() throws IOException {
        this(true);
    }

    /**
     * @param shortnames if true, uses "imagenet.shortnames.list", otherwise "imagenet.labels.list".
     */
    public DarknetLabels(boolean shortnames) throws IOException {
        super(shortnames ? "imagenet.shortnames.list" : "imagenet.labels.list");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy