|
61 | 61 | </NcNoteCard> |
62 | 62 | </template> |
63 | 63 | <p> |
64 | | - <NcCheckboxRadioSwitch :checked.sync="settings['faces.enabled']" type="switch" @update:checked="onChange"> |
| 64 | + <NcCheckboxRadioSwitch v-model="settings['faces.enabled']" type="switch" @update:model-value="onChange"> |
65 | 65 | {{ t('recognize', 'Enable face recognition (groups photos by faces that appear in them; UI is in the photos app)') }} |
66 | 66 | </NcCheckboxRadioSwitch> |
67 | 67 | <NcTextField :disabled="!settings['faces.enabled']" |
68 | | - :value.sync="settings['faces.batchSize']" |
| 68 | + v-model="settings['faces.batchSize']" |
69 | 69 | :label-visible="true" |
70 | 70 | :label="t('recognize', 'The number of files to process per job run (A job will be scheduled every 5 minutes; For normal operation ~500 or more, in WASM mode ~50 is recommended)')" |
71 | 71 | :title="t('recognize', 'The number of files to process per job run (A job will be scheduled every 5 minutes; For normal operation ~500 or more, in WASM mode ~50 is recommended)')" |
72 | | - @update:value="onChange" /> |
| 72 | + @update:model-value="onChange" /> |
73 | 73 | </p> |
74 | 74 | </NcSettingsSection> |
75 | 75 | <NcSettingsSection :name="t('recognize', 'Object detection & landmark recognition')"> |
|
109 | 109 | </template> |
110 | 110 |
|
111 | 111 | <p> |
112 | | - <NcCheckboxRadioSwitch :checked.sync="settings['imagenet.enabled']" type="switch" @update:checked="onChange"> |
| 112 | + <NcCheckboxRadioSwitch v-model="settings['imagenet.enabled']" type="switch" @update:model-value="onChange"> |
113 | 113 | {{ t('recognize', 'Enable object recognition (e.g. food, vehicles, landscapes)') }} |
114 | 114 | </NcCheckboxRadioSwitch> |
115 | 115 | <NcTextField :disabled="!settings['imagenet.enabled']" |
116 | | - :value.sync="settings['imagenet.batchSize']" |
| 116 | + v-model="settings['imagenet.batchSize']" |
117 | 117 | :label-visible="true" |
118 | 118 | :label="t('recognize', 'The number of files to process per job run (A job will be scheduled every 5 minutes; For normal operation ~100 or more, in WASM mode ~20 is recommended)')" |
119 | 119 | :title="t('recognize', 'The number of files to process per job run (A job will be scheduled every 5 minutes; For normal operation ~100 or more, in WASM mode ~20 is recommended)')" |
120 | | - @update:value="onChange" /> |
| 120 | + @update:model-value="onChange" /> |
121 | 121 | </p> |
122 | 122 | <p> </p> |
123 | 123 | <p> |
124 | | - <NcCheckboxRadioSwitch :checked.sync="settings['landmarks.enabled']" |
| 124 | + <NcCheckboxRadioSwitch v-model="settings['landmarks.enabled']" |
125 | 125 | type="switch" |
126 | 126 | :disabled="!settings['imagenet.enabled']" |
127 | | - @update:checked="onChange"> |
| 127 | + @update:model-value="onChange"> |
128 | 128 | {{ t('recognize', 'Enable landmark recognition (e.g. Eiffel Tower, Golden Gate Bridge)') }} |
129 | 129 | </NcCheckboxRadioSwitch> |
130 | 130 | <NcTextField :disabled="!settings['imagenet.enabled'] || !settings['landmarks.enabled']" |
131 | | - :value.sync="settings['landmarks.batchSize']" |
| 131 | + v-model="settings['landmarks.batchSize']" |
132 | 132 | :label-visible="true" |
133 | 133 | :label="t('recognize', 'The number of files to process per job run (A job will be scheduled every 5 minutes; For normal operation ~100 or more, in WASM mode ~20 is recommended)')" |
134 | 134 | :title="t('recognize', 'The number of files to process per job run (A job will be scheduled every 5 minutes; For normal operation ~100 or more, in WASM mode ~20 is recommended)')" |
135 | | - @update:value="onChange" /> |
| 135 | + @update:model-value="onChange" /> |
136 | 136 | </p> |
137 | 137 | </NcSettingsSection> |
138 | 138 | <NcSettingsSection :name="t('recognize', 'Audio tagging')"> |
|
154 | 154 | </NcNoteCard> |
155 | 155 | </template> |
156 | 156 | <p> |
157 | | - <NcCheckboxRadioSwitch :checked.sync="settings['musicnn.enabled']" type="switch" @update:checked="onChange"> |
| 157 | + <NcCheckboxRadioSwitch v-model="settings['musicnn.enabled']" type="switch" @update:model-value="onChange"> |
158 | 158 | {{ t('recognize', 'Enable music genre recognition (e.g. pop, rock, folk, metal, new age)') }} |
159 | 159 | </NcCheckboxRadioSwitch> |
160 | 160 | <NcTextField :disabled="!settings['musicnn.enabled']" |
161 | | - :value.sync="settings['musicnn.batchSize']" |
| 161 | + v-model="settings['musicnn.batchSize']" |
162 | 162 | :label-visible="true" |
163 | 163 | :label="t('recognize', 'The number of files to process per job run (A job will be scheduled every 5 minutes; For normal operation ~100 or more, in WASM mode ~20 is recommended)')" |
164 | 164 | :title="t('recognize', 'The number of files to process per job run (A job will be scheduled every 5 minutes; For normal operation ~100 or more, in WASM mode ~20 is recommended)')" |
165 | | - @update:value="onChange" /> |
| 165 | + @update:model-value="onChange" /> |
166 | 166 | </p> |
167 | 167 | </NcSettingsSection> |
168 | 168 | <NcSettingsSection :name="t('recognize', 'Video tagging')"> |
|
184 | 184 | </NcNoteCard> |
185 | 185 | </template> |
186 | 186 | <p> |
187 | | - <NcCheckboxRadioSwitch :checked.sync="settings['movinet.enabled']" |
| 187 | + <NcCheckboxRadioSwitch v-model="settings['movinet.enabled']" |
188 | 188 | type="switch" |
189 | 189 | :disabled="(platform !== 'x86_64' || settings['tensorflow.purejs']) && !settings['movinet.enabled']" |
190 | | - @update:checked="onChange"> |
| 190 | + @update:model-value="onChange"> |
191 | 191 | {{ t('recognize', 'Enable human action recognition (e.g. arm wrestling, dribbling basketball, hula hooping)') }} |
192 | 192 | </NcCheckboxRadioSwitch> |
193 | 193 | <NcTextField :disabled="!settings['movinet.enabled']" |
194 | | - :value.sync="settings['movinet.batchSize']" |
| 194 | + v-model="settings['movinet.batchSize']" |
195 | 195 | :label-visible="true" |
196 | 196 | :label="t('recognize', 'The number of files to process per job run (A job will be scheduled every 5 minutes; For normal operation ~20 or more, in WASM mode ~5 is recommended)')" |
197 | 197 | :title="t('recognize', 'The number of files to process per job run (A job will be scheduled every 5 minutes; For normal operation ~20 or more, in WASM mode ~5 is recommended)')" |
198 | | - @update:value="onChange" /> |
| 198 | + @update:model-value="onChange" /> |
199 | 199 | </p> |
200 | 200 | </NcSettingsSection> |
201 | 201 | <NcSettingsSection :name="t('recognize', 'Reset')"> |
|
222 | 222 | <NcSettingsSection :name="t('recognize', 'Resource usage') "> |
223 | 223 | <p>{{ t('recognize', 'By default all available CPU cores will be used which may put your system under considerable load. To avoid this, you can limit the amount of CPU Cores used. (Note: In WASM mode, currently only 1 core can be used at all times.)') }}</p> |
224 | 224 | <p> |
225 | | - <NcTextField :value.sync="settings['tensorflow.cores']" |
| 225 | + <NcTextField v-model="settings['tensorflow.cores']" |
226 | 226 | type="number" |
227 | 227 | :min="0" |
228 | 228 | :step="1" |
229 | 229 | :max="32" |
230 | 230 | :label="t('recognize', 'Number of CPU Cores (0 for no limit)')" |
231 | 231 | :label-visible="true" |
232 | | - @update:value="onChange" /> |
| 232 | + @update:model-value="onChange" /> |
233 | 233 | </p> |
234 | 234 | <p> </p> |
235 | 235 | <p>{{ t('recognize', 'By default, recognize will only ever run one classifier process at a time. If you have a lot of resources available and want to run as many processes in parallel as possible, you can turn on concurrency here.') }}</p> |
236 | 236 | <p> |
237 | | - <NcCheckboxRadioSwitch :checked.sync="settings['concurrency.enabled']" |
| 237 | + <NcCheckboxRadioSwitch v-model="settings['concurrency.enabled']" |
238 | 238 | type="switch" |
239 | | - @update:checked="onChange"> |
| 239 | + @update:model-value="onChange"> |
240 | 240 | {{ t('recognize', 'Enable unlimited concurrency of classifier processes') }} |
241 | 241 | </NcCheckboxRadioSwitch> |
242 | 242 | </p> |
|
262 | 262 | </ul> |
263 | 263 | </template> |
264 | 264 | <p> |
265 | | - <NcCheckboxRadioSwitch :checked.sync="settings['tensorflow.purejs']" type="switch" @update:checked="onChange"> |
| 265 | + <NcCheckboxRadioSwitch v-model="settings['tensorflow.purejs']" type="switch" @update:model-value="onChange"> |
266 | 266 | {{ t('recognize', 'Enable WASM mode') }} |
267 | 267 | </NcCheckboxRadioSwitch> |
268 | 268 | </p> |
|
272 | 272 | </NcSettingsSection> |
273 | 273 | <NcSettingsSection :name="t('recognize', 'Tensorflow GPU mode')"> |
274 | 274 | <p> |
275 | | - <NcCheckboxRadioSwitch :checked.sync="settings['tensorflow.gpu']" |
| 275 | + <NcCheckboxRadioSwitch v-model="settings['tensorflow.gpu']" |
276 | 276 | type="switch" |
277 | 277 | :disabled="settings['tensorflow.purejs']" |
278 | | - @update:checked="onChange"> |
| 278 | + @update:model-value="onChange"> |
279 | 279 | {{ t('recognize', 'Enable GPU mode') }} |
280 | 280 | </NcCheckboxRadioSwitch> |
281 | 281 | </p> |
|
325 | 325 | {{ t('recognize', 'If the shipped Node.js binary doesn\'t work on your system for some reason you can set the path to a custom node.js binary. Currently supported is Node v20.9 and newer v20 releases.') }} |
326 | 326 | </p> |
327 | 327 | <p> |
328 | | - <NcTextField :value.sync="settings['node_binary']" @update:value="onChange" /> |
| 328 | + <NcTextField v-model="settings['node_binary']" @update:model-value="onChange" /> |
329 | 329 | </p> |
330 | 330 | <p>{{ t('recognize', 'For Nextcloud Snap users, you need to adjust this path to point to the snap\'s "current" directory as the pre-configured path will change with each update. For example, set it to "/var/snap/nextcloud/current/nextcloud/extra-apps/recognize/bin/node" instead of "/var/snap/nextcloud/9337974/nextcloud/extra-apps/recognize/bin/node"') }}</p> |
331 | 331 | </NcSettingsSection> |
|
343 | 343 | {{ t('recognize', 'If the shipped FFmpeg binary doesn\'t work on your system for some reason you can set the path to a custom FFmpeg binary.') }} |
344 | 344 | </p> |
345 | 345 | <p> |
346 | | - <NcTextField :value.sync="settings['ffmpeg_binary']" @update:value="onChange" /> |
| 346 | + <NcTextField v-model="settings['ffmpeg_binary']" @update:model-value="onChange" /> |
347 | 347 | </p> |
348 | 348 | </NcSettingsSection> |
349 | 349 | <NcSettingsSection :name="t('recognize', 'Classifier process priority')"> |
|
357 | 357 | {{ t('recognize', 'Nice binary path') }} |
358 | 358 | </p> |
359 | 359 | <p> |
360 | | - <NcTextField :value.sync="settings['nice_binary']" |
| 360 | + <NcTextField v-model="settings['nice_binary']" |
361 | 361 | :label-visible="true" |
362 | 362 | :label="t('recognize', 'Nice binary path')" |
363 | | - @update:value="onChange" /> |
| 363 | + @update:model-value="onChange" /> |
364 | 364 | </p> |
365 | 365 | <p> </p> |
366 | 366 | <p> |
367 | 367 | {{ t('recognize', 'Nice value to set the priority of the Node.js processes. The value can only be from 0 to 19 since the Node.js process runs without superuser privileges. The higher the nice value, the lower the priority of the process.') }} |
368 | 368 | </p> |
369 | 369 | <p> |
370 | | - <NcTextField :value.sync="settings['nice_value']" |
| 370 | + <NcTextField v-model="settings['nice_value']" |
371 | 371 | type="number" |
372 | 372 | :min="0" |
373 | 373 | :max="19" |
374 | 374 | :step="1" |
375 | 375 | :disabled="nice === false" |
376 | | - @update:value="onChange" /> |
| 376 | + @update:model-value="onChange" /> |
377 | 377 | </p> |
378 | 378 | </NcSettingsSection> |
379 | 379 | <NcSettingsSection :name="t('recognize', 'Terminal commands') "> |
|
0 commit comments