質問編集履歴
2
実行してみました
test
CHANGED
File without changes
|
test
CHANGED
@@ -82,7 +82,9 @@
|
|
82
82
|
|
83
83
|
```
|
84
84
|
|
85
|
-
```image_train,image_train_filenames=load_images("drive/My Drive/denoise/image/train",256,'Gray')
|
85
|
+
```image_train,image_train_filenames=```load_images("drive/My Drive/denoise/image/train",256,'Gray')
|
86
|
+
|
87
|
+
```
|
86
88
|
|
87
89
|
image_test,image_test_filenames=load_images("drive/My Drive/denoise/image/test",256,'Gray')
|
88
90
|
|
@@ -94,4 +96,12 @@
|
|
94
96
|
|
95
97
|
⇒array([], dtype=float32)
|
96
98
|
|
99
|
+
``````
|
100
|
+
|
101
|
+
load_images("drive/My Drive/denoise/image/train",256,'Gray')
|
102
|
+
|
103
|
+
⇒(array([], dtype=float32),
|
104
|
+
|
105
|
+
['train1.jpg', 'train2.jpg', 'train3.jpg', 'train4.jpg'])
|
106
|
+
|
97
107
|
```
|
1
def load_images(ディレクトリ,サイズ,カラー)で定義しています
test
CHANGED
File without changes
|
test
CHANGED
@@ -10,7 +10,11 @@
|
|
10
10
|
|
11
11
|
|
12
12
|
|
13
|
+
```
|
14
|
+
|
15
|
+
|
16
|
+
|
13
|
-
|
17
|
+
def load_images(inputpath,imagesize,type_color):
|
14
18
|
|
15
19
|
imglist=[]
|
16
20
|
|