Skip to content
Snippets Groups Projects
Commit 8e3cd089 authored by thomas.blanc.2@etu.univ-amu.fr's avatar thomas.blanc.2@etu.univ-amu.fr
Browse files

Added performance support

parent 0749df43
No related branches found
No related tags found
No related merge requests found
......@@ -16,8 +16,10 @@
</b-taglist>
</div>
</div>
<div class="media-right">
<h2 class="title is-4">{{model.votes}} votes</h2>
<div class="media-right details">
<h2 class="title">{{model.votes}} votes</h2>
<h2>{{model.parameterCount}} parameters</h2>
<h2>{{model.performance}} {{model.performanceUnit}}</h2>
</div>
</article>
</a>
......@@ -39,4 +41,8 @@ export default {
.box {
margin-bottom: 10px;
}
.details {
text-align: right;
}
</style>
......@@ -9,7 +9,7 @@ Vue.use(Buefy)
Vue.config.productionTip = false
// Vue.prototype.$serverurl = process.env.VUE_APP_SERVER_URL
Vue.prototype.$serverurl = 'https://mozen.gltronic.ovh/'
Vue.prototype.$serverurl = 'http://localhost:8181/'
new Vue({
router,
......
......@@ -23,6 +23,7 @@
</b-table-column>
<b-table-column label="" centered>
<b-button class="actionButton" icon-left="eye" type="is-info" tag="router-link" :to="{ name: 'Model', query: { id: props.row.id } }" outlined/>
<b-button class="actionButton" icon-left="delete" type="is-danger" @click="removePrompt(props.row.id, props.row.name, 'model')" outlined/>
</b-table-column>
</template>
......@@ -77,6 +78,9 @@
</template>
</b-table>
</b-tab-item>
<b-tab-item label="Comments">
</b-tab-item>
</b-tabs>
</div>
</div>
......
......@@ -26,17 +26,15 @@
<br>
<small>Last modification: </small><strong>{{new Date(model.lastModified).toLocaleDateString()}}</strong>
<br>
<small>parameters: </small><strong>{{model.parameterCount}}</strong>
<br>
<b-button type="is-primary" size="is-medium" icon-left="download">
<small>{{model.performanceUnit}}: </small><strong>{{model.performance}}</strong>
<br>
<br>
<b-button v-if="model.checksum" type="is-primary" size="is-medium" icon-left="download">
Download model
</b-button>
<a
class="button is-primary is-medium"
icon-left="download"
:href="downloadUrl"
download>
Download model
</a>
<h2 v-else class="title is-5">No file provided</h2>
<hr>
<strong>{{model.customLayers.length}} customs layers</strong>
<br>
......@@ -55,11 +53,14 @@
<b-tab-item label="Layers">
</b-tab-item>
</b-tabs>
</div>
<b-tab-item label="Comments">
<div class="box">
<Comments v-bind:comments="model.comments"/>
</div>
</b-tab-item>
</b-tabs>
</div>
</div>
<b-loading :is-full-page="false" :active.sync="isLoading"/>
</div>
......
......@@ -13,6 +13,17 @@
<b-field label="Long description">
<markdownEditor v-bind:input="model.longDescription" v-on:update-description="model.longDescription = $event"/>
</b-field>
<b-field label="Performance">
<b-field>
<b-input type="number" placeholder="98" step="0.01" v-model="model.performance"/>
<b-autocomplete open-on-focus placeholder="accuracy" :data="performanceTypes" v-model="model.performanceUnit"/>
</b-field>
</b-field>
<b-field label="Number of parameters">
<b-input type="number" min="0" placeholder="0" v-model="model.parameterCount"/>
</b-field>
</b-step-item>
<b-step-item step="2" label="Tags" clickable>
......@@ -69,7 +80,12 @@ export default {
return {
model: {},
activeStep: 0,
isUploadModalActive: false
isUploadModalActive: false,
performanceTypes: [
'accuracy',
'error rate',
'MSE'
]
}
},
methods: {
......
......@@ -16,6 +16,17 @@
<markdownEditor v-bind:input="model.longDescription" v-on:update-description="model.longDescription = $event"/>
</b-field>
<b-field label="Performance">
<b-field>
<b-input type="number" placeholder="98" step="0.01" v-model="model.performance"/>
<b-autocomplete open-on-focus placeholder="accuracy" :data="performanceTypes" v-model="model.performanceUnit"/>
</b-field>
</b-field>
<b-field label="Number of parameters">
<b-input type="number" min="0" placeholder="0" v-model="model.parameterCount"/>
</b-field>
<hr>
<h1 class="title">Tags</h1>
<tagEditor v-bind:modelTags="model.tags" v-on:update-tags="model.tags = $event"/>
......
......@@ -18,6 +18,8 @@
<b-select placeholder="Order by" icon="filter" @input="setOrder">
<option value="votes">Most vote</option>
<option value="lastModified">Most recent</option>
<option value="performance">Best performance</option>
<option value="parameterCount">Less parameters</option>
</b-select>
</b-field>
<h1 class="title is-6">{{result.totalResult}} results - page {{result.page}} of {{result.totalPage}}</h1>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment