{{ define "title" }} Model: {{ .Model.Name }} {{ end }} {{ define "base-model-card" }}

{{ .Model.Name }}

Image Type: {{ .Model.Color_mode }}
Image Size: {{ .Model.Width }}x{{ .Model.Height }}
{{ end }} {{ define "delete-model-card" }}
To delete this model please type "{{ .Model.Name }}": {{ if .NameDoesNotMatch }} Name does not match "{{ .Model.Name }}" {{ end }}
{{ end }} {{ define "data-model-card" }}

Training data

{{ if eq (len .Classes) 0 }}

You need to upload data so the model can train.

Please provide a file that has the training and testing data
The file must have 2 folders one with testing images and one with training images.
Each of the folders will contain the classes of the model. The folders must be the same in testing and training. The class folders must have the images for the classes.
    training\
        class1\
            img1.png
            img2.png
            img2.png
            ...
        class2\
            img1.png
            img2.png
            img2.png
            ...
        ...
    testing\
        class1\
            img1.png
            img2.png
            img2.png
            ...
        class2\
            img1.png
            img2.png
            img2.png
            ...
        ...
TODO
TODO
{{ else }}

You need to upload data so the model can train.

TODO
TODO
{{ end }}
{{ end }} {{ define "train-model-card" }}
tain menu
{{ end }} {{ define "mainbody" }}
{{ if (eq .Model.Status 1) }}

{{ .Model.Name }}

Preparing the model

{{ else if (eq .Model.Status -1) }}

{{ .Model.Name }}

Failed to prepare model

{{/* PRE TRAINING STATUS */}} {{ else if (eq .Model.Status 2) }} {{ template "base-model-card" . }} {{ template "data-model-card" . }} {{ template "train-model-card" . }} {{ template "delete-model-card" . }} {{/* FAILED TO PROCCESS THE ZIPFILE */}} {{ else if (eq .Model.Status -2)}} {{ template "base-model-card" . }}
Failed to proccess the zip file.
Delete file and proccess afain.

{{ template "delete-model-card" . }} {{/* PROCCESS THE ZIPFILE */}} {{ else if (eq .Model.Status 3)}} {{ template "base-model-card" . }}
{{/* TODO improve this */}} Processing zip file...
{{ else }}

Unknown Status of the model.

{{ end }}
{{ end }}