kotlindl icon indicating copy to clipboard operation
kotlindl copied to clipboard

Update the Quick Start Guide for the 0.5.1 version: Unresolved classes when attempting tutorial

Open Odaym opened this issue 1 year ago • 2 comments

In your Quick Start Guide you mention the dependencies that will be needed to follow along, namely: `implementation 'org.jetbrains.kotlinx:kotlin-deeplearning-onnx:0.5.1' and nothing else.

Heading into the second tutorial, Create your First Neural Network, none of the classes used in the code examples resolve to anything, Sequential, Flatten, none of them.

Looking at the Android sample app, none of these classes are even used in the sample app, and you also have a onnx plugin included there which you don't mention in the quick start guide: id 'org.jetbrains.kotlinx.kotlin-deeplearning-gradle-plugin' version '0.5.1'

How can I get the classes inside that tutorial to resolve? them and all the other classes in subsequent tutorials after that one?

Thanks!

Odaym avatar Feb 10 '23 09:02 Odaym

@Odaym, thank you for the question. This section of the "Quick Start Guide" you are referring talks about Android projects doing inference. The sample app also demonstrates inference, this is why it does not use any of the mentioned classes. And the plugin is needed to download pretrained models (see more in the Downloading pre-trained KotlinDL Model Zoo models section). If you want to train your own networks, you'll need the following dependency:

implementation 'org.jetbrains.kotlinx:kotlin-deeplearning-tensorflow:[KOTLIN-DL-VERSION]'

It looks like our "Quick Start Guide" needs to be updated, thank you for pointing that out.

juliabeliaeva avatar Feb 10 '23 12:02 juliabeliaeva

@juliabeliaeva I will update the guide

zaleslaw avatar Feb 13 '23 18:02 zaleslaw