{#await model} Model {:then m} {#if m} Model: {m.name} {:else} Model {/if} {/await}
{#if [4, 7].includes(_model?.status ?? 0)}
The Model is currently training
{/if} {#if [-4, -7].includes(_model?.status ?? 0)}
The Model is failed to train
{/if}
{#if _model && [2, 3, 4, 5, 6, 7, -6, -7].includes(_model.status)} {/if} {#if _model && [5, 6, 7, -6, -7].includes(_model.status)} {/if}
{#if _model} {/if}
{#await model} Loading {:then m} {#if m.status == 1}

{m.name}

Preparing the model

{:else if m.status == -1}

{m.name}

Failed to prepare model

{:else if m.status == 2} {:else if m.status == -2} {:else if m.status == 3}
Processing zip file...
{:else if m.status == -3 || m.status == -4}
Failed Prepare for training.
{:else if m.status == 4}
Training the model...
{#await definitions} Loading {:then defs} {#each defs as def} {#if def.status == 3 && def.layers} {/if} {/each}
Done Progress Training Round Progress Accuracy Status
{def.epoch} {def.epoch_progress}/20 {def.accuracy}% {#if def.status == 2} {:else if [3, 6, -3].includes(def.status)} {:else} {def.status} {/if}
{#each def.layers as layer, i} {@const sep_mod = def.layers.length > 8 ? Math.max(10, 100 - (def.layers.length - 8) * 10) : 100} {#if layer.layer_type == 1} {:else if layer.layer_type == 4} {:else if layer.layer_type == 3} {:else if layer.layer_type == 2} {:else}
{layer.layer_type} {layer.shape}
{/if} {/each}
{/await}
{:else if [5, 6, -6, 7, -7].includes(m.status)} {#if m.status == 6}
Model expading... Processing ZIP file
{/if} {#if m.status == -6} {/if} {#if m.status == -7}
Failed to train the model! Try to retrain
{/if} {#if m.model_type == 2} {/if} {:else}

Unknown Status of the model.

{/if} {/await}