|
1 | | -################################################################################ |
| 1 | +############################################################################### |
2 | 2 | <# |
3 | 3 | .SYNOPSIS |
4 | 4 | Classifies an image into one of 365 scene categories using DeepStack. |
@@ -126,8 +126,7 @@ veterinarians_office, viaduct, village, vineyard, volcano, |
126 | 126 | volleyball_court, waiting_room, water_park, water_tower, waterfall, |
127 | 127 | watering_hole, wave, wet_bar, wheat_field, wind_farm, windmill, yard, |
128 | 128 | youth_hostel, zen_garden. |
129 | | -#> |
130 | | -############################################################################### |
| 129 | +###############################################################################> |
131 | 130 | function Get-ImageDetectedScenes { |
132 | 131 |
|
133 | 132 | [CmdletBinding()] |
@@ -203,6 +202,13 @@ function Get-ImageDetectedScenes { |
203 | 202 | [ValidateNotNullOrEmpty()] |
204 | 203 | [string] $ImageName, |
205 | 204 | ####################################################################### |
| 205 | + [Parameter( |
| 206 | + Mandatory = $false, |
| 207 | + HelpMessage = ("Skip Docker initialization (used when already " + |
| 208 | + "called by parent function)") |
| 209 | + )] |
| 210 | + [switch] $NoDockerInitialize, |
| 211 | + ####################################################################### |
206 | 212 | [Parameter( |
207 | 213 | Mandatory = $false, |
208 | 214 | HelpMessage = ("Force rebuild of Docker container and remove " + |
@@ -308,7 +314,9 @@ function Get-ImageDetectedScenes { |
308 | 314 | $SceneData.confidence |
309 | 315 | } else { |
310 | 316 | 0.0 |
311 | | - } Microsoft.PowerShell.Utility\Write-Verbose ` |
| 317 | + } |
| 318 | + |
| 319 | + Microsoft.PowerShell.Utility\Write-Verbose ` |
312 | 320 | "Detected scene: $scene (confidence: $confidence)" |
313 | 321 |
|
314 | 322 | # check if confidence meets the threshold |
@@ -404,4 +412,4 @@ function Get-ImageDetectedScenes { |
404 | 412 | # no cleanup required for this function |
405 | 413 | } |
406 | 414 | } |
407 | | -################################################################################ |
| 415 | + ############################################################################### |
0 commit comments