Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
tools:modellearner [2021/04/05 14:20]
superuser created
tools:modellearner [2021/04/13 05:50] (current)
superuser
Line 1: Line 1:
-====== Model learner ======+==== Model learner ===
 +\\ 
 +=== Getting started ​=== 
 +At the start of the program you will see window like this: 
 +{{:​tools:​pasted:​20210405-144438.png}}
  
 +  * **Model file** - file in Candybox folder usually has format **model**//​{recipe_number}//​**.h5**
 +  * **Classes count** - specifies how many candy area types is contained in model.\\ Usually this number is equal to amount of candy types + 1(for background)
 +  * **Images folder** - folder with images to work with.
 +
 +Known parameters for models are:
 +^ Model          ^ Classes ​      ^
 +| **model144318.h5** ​   | 9    |
 +| **model144750.h5** ​   | 9    |
 +| **model144753.h5** ​   | 14    |
 +| **model161221.h5** ​   | 9    |
 +| **model160985.h5** ​   | 14    |
 +
 +After specifying all the parameters press **Open** button
 +\\
 +\\
 +=== Correction ===
 +
 +Pick an image and find incorrect recognition using **mouse wheel**.
 +
 +{{ :​tools:​screenshot_2.jpg?​nolink |}}
 +
 +Using **Move vertices** tool correct area of the candy.
 +
 +{{ :​tools:​screenshot_1.jpg?​nolink |}}
 +
 +After correction is made press **Export** button.
 +
 +{{ :​tools:​screenshot_3.jpg?​nolink |}}
 +
 +The image would be marked as exported. So this image would be used to train the neural net.
 +\\
 +\\
 +
 +----
 +
 +=== Learning ===
 +Press **Learn** button. A learning window will appear
 +{{ :​tools:​screenshot_4.jpg?​nolink |}}
 +
 +Pick a test image. You will see raw output of the neural net. As you can see. Candy in the bottom middle appears cut in the same way we have seen in previous step.
 +
 +Now we need to train our network.
 +
 +To do that click the **Learn** button at the bottom right corner of the window.
 +Neural net will perform one learning iteration. You may perform more than one iteration. When you satisfied with the results - close the window.
 +{{ :​tools:​screenshot_5.jpg?​nolink |}}
 +
 +Now you can see how neural net behaves with loaded images
 +{{ :​tools:​screenshot_6.jpg?​nolink |}}
 +
 +But if you close the program now - you will loose all the changes. To save what neural net have learned you need to save the model.
 +To do so go to the **Learning** menu and press **Save model**
 +{{ :​tools:​screenshot_7.jpg?​nolink |}}
  • tools/modellearner.1617632446.txt.gz
  • Last modified: 2021/04/05 14:20
  • by superuser