# Impossible to import Zoo model

**URL:** <https://community.konduit.ai/t/impossible-to-import-zoo-model/2081>\
**Category:** DL4J\
**Created:** [November 25, 2022, 10:59am UTC](https://community.konduit.ai/t/impossible-to-import-zoo-model/2081 "2022-11-25T10:59:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mbouazza-dev](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/mbouazza-dev/32/968_2.png) [@mbouazza-dev](https://community.konduit.ai/u/mbouazza-dev)\
**Post date:** [November 25, 2022, 10:59am UTC](https://community.konduit.ai/t/impossible-to-import-zoo-model/2081/1 "2022-11-25T10:59:24Z")

</div>

I tried to load a zoo model with this code snippet:

```auto
ZooModel zooModel = VGG16.builder().build();
ComputationGraph pretrainedNet = (ComputationGraph) zooModel.initPretrained(PretrainedType.IMAGENET);

```

However I get the following error:

```auto
java: cannot find symbol
  symbol: class builder

```

I would point out that I’m using java 11 and this is all of my maven dependencies for this project:

```auto
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>org.example</groupId>
    <artifactId>NNCF</artifactId>
    <version>1.0-SNAPSHOT</version>

    <properties>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.datavec</groupId>
            <artifactId>datavec-data-image</artifactId>
            <version>1.0.0-M2.1</version>
        </dependency>

        <dependency>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.8.1</version>
        </dependency>

        <dependency>
            <groupId>org.deeplearning4j</groupId>
            <artifactId>deeplearning4j-core</artifactId>
            <version>1.0.0-M2.1</version>
        </dependency>

        <dependency>
            <groupId>org.deeplearning4j</groupId>
            <artifactId>deeplearning4j-nn</artifactId>
            <version>1.0.0-M2.1</version>
        </dependency>

        <dependency>
            <groupId>org.apache.tomcat</groupId>
            <artifactId>tomcat-servlet-api</artifactId>
            <version>9.0.56</version>
        </dependency>

        <dependency>
            <groupId>org.deeplearning4j</groupId>
            <artifactId>deeplearning4j-nlp</artifactId>
            <version>1.0.0-M2.1</version>
        </dependency>

        <dependency>
            <groupId>com.sparkjava</groupId>
            <artifactId>spark-core</artifactId>
            <version>2.9.4</version>
        </dependency>

        <dependency>
            <groupId>org.deeplearning4j</groupId>
            <artifactId>deeplearning4j-modelimport</artifactId>
            <version>1.0.0-M2.1</version>
        </dependency>

        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <version>1.18.2</version>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>org.deeplearning4j</groupId>
            <artifactId>deeplearning4j-zoo</artifactId>
            <version>1.0.0-M2.1</version>
        </dependency>

    </dependencies>

</project>

```

---

<div class="post-metadata">

**Author:** ![agibsonccc](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/agibsonccc/32/697_2.png) [@agibsonccc](https://community.konduit.ai/u/agibsonccc)\
**Post date:** [December 1, 2022, 8:11am UTC](https://community.konduit.ai/t/impossible-to-import-zoo-model/2081/2 "2022-12-01T08:11:59Z")

</div>

@mbouazza-dev we’ll be retiring that zoo module. We need to migrate more models over to the new location using the new framework where you can download them from here:

> **[omnihub-zoo/dl4j at main · KonduitAI/omnihub-zoo](https://github.com/KonduitAI/omnihub-zoo/tree/main/dl4j)**
>
> main/dl4j

I’ve been wanting to reupload the models but have had issues with git lfs that I haven’t had time to look in to. Happy to help you set it up though.

---

<div class="post-metadata">

**Author:** ![iakundi](https://avatars.discourse-cdn.com/v4/letter/i/85e7bf/32.png) [@iakundi](https://community.konduit.ai/u/iakundi)\
**Post date:** [June 21, 2024, 2:35pm UTC](https://community.konduit.ai/t/impossible-to-import-zoo-model/2081/3 "2024-06-21T14:35:59Z")

</div>

What is the maven dependency for omnihub-zoo?  
Not much information is available although this page says zoo model is deprecated and recommends omnihub-zoo:  
[Zoo Models | Deeplearning4j (konduit.ai)](https://deeplearning4j.konduit.ai/deeplearning4j/reference/model-zoo/zoo-models)

We use deeplearning4j-zoo, 1.0.0-M2.1 in our legacy project from a few years ago. That code no longer seems to work

---

<div class="post-metadata">

**Author:** ![agibsonccc](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/agibsonccc/32/697_2.png) [@agibsonccc](https://community.konduit.ai/u/agibsonccc)\
**Post date:** [June 26, 2024, 2:11am UTC](https://community.konduit.ai/t/impossible-to-import-zoo-model/2081/4 "2024-06-26T02:11:39Z")

</div>

@iakundi can you clarify what your error is? Does it have anything to do with azure? That was a recent issue and should be fixed.

Omnihub will be the new way to import models going forward. The old zoo only supports the dl4j framework. Omnihub will support the samediff api which will be the lower level api for people to implement custom models going forward.
