回答編集履歴
2
modified some poits
test
CHANGED
@@ -92,4 +92,14 @@
|
|
92
92
|
|
93
93
|
|
94
94
|
|
95
|
+
# 対象ディレクトリを指定する,複数のディレクトリを指定可能
|
96
|
+
|
97
|
+
directory = ["./train/NORMAL/*jpeg", "./test/NORMAL/*.jpeg"]
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
for d in directory:
|
102
|
+
|
103
|
+
count_resol(d)
|
104
|
+
|
95
105
|
```
|
1
modified some points
test
CHANGED
@@ -82,7 +82,7 @@
|
|
82
82
|
|
83
83
|
d[info] += 1
|
84
84
|
|
85
|
-
if
|
85
|
+
if width ==1536 and height == 496:
|
86
86
|
|
87
87
|
shutil.copy(file, './NORMAL_resize_copy_100_1_0506/' )# shutil.copyに修正、コピー元をfileに修正
|
88
88
|
|
@@ -90,4 +90,6 @@
|
|
90
90
|
|
91
91
|
print(d)
|
92
92
|
|
93
|
+
|
94
|
+
|
93
95
|
```
|