回答編集履歴
2
修正
test
CHANGED
@@ -15,3 +15,37 @@
|
|
15
15
|
continue
|
16
16
|
|
17
17
|
```
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
----
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
## 変更箇所
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
```python
|
30
|
+
|
31
|
+
for f in os.listdir("sakura"):
|
32
|
+
|
33
|
+
if f == ".DS_Store":
|
34
|
+
|
35
|
+
continue
|
36
|
+
|
37
|
+
x.append(image.img_to_array(image.load_img("sakura/" + f, target_size=input_shape[:2])))
|
38
|
+
|
39
|
+
y.append(0)
|
40
|
+
|
41
|
+
for f in os.listdir("cosmos"):
|
42
|
+
|
43
|
+
if f == ".DS_Store":
|
44
|
+
|
45
|
+
continue
|
46
|
+
|
47
|
+
x.append(ximage.img_to_array(image.load_img("cosmos/" + f, target_size=input_shape[:2])))
|
48
|
+
|
49
|
+
y.append(1)
|
50
|
+
|
51
|
+
```
|
1
修正
test
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
```
|
12
12
|
|
13
|
-
if f
|
13
|
+
if f == ".DS_Store":
|
14
14
|
|
15
15
|
continue
|
16
16
|
|