@@ -15,11 +15,13 @@ type Arguments struct {
1515 Recursive bool
1616 Jobs int
1717 Network string
18+ CountDone int
1819}
1920
2021func main () {
2122 start := time .Now ()
2223 arguments := new (Arguments )
24+ arguments .CountDone = 0
2325 arguments .Jobs = 1
2426 argumentParsing (os .Args , arguments )
2527 if arguments .Network == "resnet-50" {
@@ -28,14 +30,18 @@ func main() {
2830 if arguments .Jobs == 1 {
2931 logging .Success ("Starting image classification recursively.." , "[ResNet-50]" )
3032 } else {
31- logging .Success ("Starting image classification recursively with " + string (arguments .Jobs )+ " parallel jobs.." , "[ResNet-50]" )
33+ logging .Success ("Starting image classification recursively with " +
34+ color .Green (arguments .Jobs )+
35+ color .Yellow (" parallel jobs.." ), "[ResNet-50]" )
3236 }
3337 runRecursively (arguments )
3438 } else {
3539 if arguments .Jobs == 1 {
3640 logging .Success ("Starting image classification.." , "[ResNet-50]" )
3741 } else {
38- logging .Success ("Starting image classification with " + string (arguments .Jobs )+ " parallel jobs.." , "[ResNet-50]" )
42+ logging .Success ("Starting image classification with " +
43+ color .Green (arguments .Jobs )+
44+ color .Yellow (" parallel jobs.." ), "[ResNet-50]" )
3945 }
4046 run (arguments )
4147 }
@@ -45,17 +51,24 @@ func main() {
4551 if arguments .Jobs == 1 {
4652 logging .Success ("Starting image classification recursively.." , "[GoogleNet]" )
4753 } else {
48- logging .Success ("Starting image classification recursively with " + string (arguments .Jobs )+ " parallel jobs.." , "[GoogleNet]" )
54+ logging .Success ("Starting image classification recursively with " +
55+ color .Green (arguments .Jobs )+
56+ color .Yellow (" parallel jobs.." ), "[GoogleNet]" )
4957 }
5058 runRecursively (arguments )
5159 } else {
5260 if arguments .Jobs == 1 {
5361 logging .Success ("Starting image classification.." , "[GoogleNet]" )
5462 } else {
55- logging .Success ("Starting image classification with " + string (arguments .Jobs )+ " parallel jobs.." , "[GoogleNet]" )
63+ logging .Success ("Starting image classification with " +
64+ color .Green (arguments .Jobs )+
65+ color .Yellow (" parallel jobs.." ), "[GoogleNet]" )
5666 }
5767 run (arguments )
5868 }
5969 }
60- color .Println (color .Cyan ("Done in " ) + color .Yellow (time .Since (start )) + color .Cyan ("!" ))
70+ logging .Success (color .Yellow (arguments .CountDone )+
71+ color .Cyan (" pictures sorted in " )+
72+ color .Yellow (time .Since (start ))+
73+ color .Cyan ("!" ), color .Cyan ("Congrats," ))
6174}
0 commit comments