-
Notifications
You must be signed in to change notification settings - Fork 0
/
StyleTransfer.html
196 lines (133 loc) · 6.5 KB
/
StyleTransfer.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
<!DOCTYPE html>
<html>
<head>
<link href="https://cdn.jsdelivr.net/npm/@mdi/[email protected]/css/materialdesignicons.min.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/@mdi/[email protected]/css/materialdesignicons.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/vuetify.min.css" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">
<title>Style-Transfer ADHO</title>
</head>
<body>
<div id="app">
<v-app>
<v-content>
<v-toolbar dark
src="BackgroundR.png">
<a style="text-decoration: none;" class="white--text" target="_blank" href="https://github.com/AD-HO/">
<v-toolbar-title href="#" style="text-decoration: none;"> <v-icon x-large>mdi-github</v-icon> Ad-Ho </v-toolbar-title>
</a>
<v-row>
<v-tabs v-model="tab"
background-color="transparent"
centered
icons>
<v-tab v-for="item in items"
:key="item.tab"
href="#"
link>
Style Transfer
</v-tab>
</v-tabs>
</v-row>
</v-toolbar>
<h4 class="black--text"> Due to lack of processing power, please enter an Image with a size less than (700,700) </h4>
<div v-if="value > 0">
<v-progress-linear :value="value"
color="blue darken-4"></v-progress-linear>
<h5 class="text-center black--text"> {{value}} %</h5>
</div>
<!--AAAAAAAAAAAAAAAAAAAAA-->
<v-row justify="center">
<v-col class="text-center white--text" cols="12">
<!-- <v-btn text large color="white" v-on:click="Doit" class="elevation-6">RESUME PDF</v-btn>
-->
<div id="preview">
<v-file-input v-model="file"
id="imageFile"
chips
accept="image/*"
label="Image"
/>
</div>
<v-radio-group v-model="radioGroup">
<v-row justify="center">
<v-col cols="3"></v-col>
<v-col col="2">
<v-radio
label="Candy"
value="0"
>
</v-radio>
</v-col>
<v-col col="2">
<v-radio
label="Mosaic"
value="1"
checked="checked"
ref="defaultradio"
>
</v-radio>
</v-col>
<v-col col="2">
<v-radio
label="Rain"
value="2"
>
</v-radio>
</v-col>
<v-col col="2">
<v-radio
label="Udnie"
value="3"
>
</v-radio>
</v-col>
<v-col cols="3"></v-col>
</v-row>
</v-radio-group>
<br>
<v-row justify="center">
<v-btn
depressed
color="primary"
v-on:click="Launch()"
>
Start
</v-btn>
</v-row>
<br>
<hr/>
<img :src="item.image" >
</v-col>
</v-row>
</v-content>
<v-row justify="center">
<v-dialog
v-model="dialog"
max-width="400"
>
<v-card>
<v-card-title class="text-h5">
Waiting to the server </v-card-title>
<v-card-text>
In case this message last longer than 30s, please refresh the page
<div>
<v-progress-linear
indeterminate
stream
color="cyan"
></v-progress-linear>
</div>
</v-card-text>
</v-card>
</v-dialog>
</v-row>
</v-app>
</div>
<script src="js/signalr.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vuetify.js"></script>
<script src="js/ST.js"></script>
</body>
</html>