質問編集履歴
10
変更後
title
CHANGED
File without changes
|
body
CHANGED
@@ -149,4 +149,6 @@
|
|
149
149
|
#学習結果
|
150
150
|

|
151
151
|
#学習時に使った画像のパス AからZのフォルダ
|
152
|
-

|
152
|
+

|
153
|
+
#CSVファイルの中身 変更後
|
154
|
+

|
9
誤字
title
CHANGED
File without changes
|
body
CHANGED
@@ -147,4 +147,6 @@
|
|
147
147
|
#ネットワーク構造
|
148
148
|

|
149
149
|
#学習結果
|
150
|
-

|
150
|
+

|
151
|
+
#学習時に使った画像のパス AからZのフォルダ
|
152
|
+

|
8
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -32,25 +32,25 @@
|
|
32
32
|
def network(x, y, test=False):
|
33
33
|
# Input:x -> 3,250,250
|
34
34
|
# BinaryConnectAffine -> 100
|
35
|
-
h = PF.binary_connect_affine(x, name='BinaryConnectAffine')
|
35
|
+
h = PF.binary_connect_affine(x,(100), name='BinaryConnectAffine')
|
36
36
|
# BatchNormalization
|
37
37
|
h = PF.batch_normalization(h, (1,), 0.9, 0.0001, not test, name='BatchNormalization')
|
38
38
|
# ReLU
|
39
39
|
h = F.relu(h, True)
|
40
40
|
# BinaryConnectAffine_2
|
41
|
-
h = PF.binary_connect_affine(h, name='BinaryConnectAffine_2')
|
41
|
+
h = PF.binary_connect_affine(h,(100), name='BinaryConnectAffine_2')
|
42
42
|
# BatchNormalization_2
|
43
43
|
h = PF.batch_normalization(h, (1,), 0.9, 0.0001, not test, name='BatchNormalization_2')
|
44
44
|
# ReLU_2
|
45
45
|
h = F.relu(h, True)
|
46
46
|
# BinaryConnectAffine_3
|
47
|
-
h = PF.binary_connect_affine(h, name='BinaryConnectAffine_3')
|
47
|
+
h = PF.binary_connect_affine(h,(100), name='BinaryConnectAffine_3')
|
48
48
|
# BatchNormalization_3
|
49
49
|
h = PF.batch_normalization(h, (1,), 0.9, 0.0001, not test, name='BatchNormalization_3')
|
50
50
|
# ReLU_3
|
51
51
|
h = F.relu(h, True)
|
52
52
|
# BinaryConnectAffine_4 -> 26
|
53
|
-
h = PF.binary_connect_affine(h, (26
|
53
|
+
h = PF.binary_connect_affine(h, (26), name='BinaryConnectAffine_4')
|
54
54
|
# BatchNormalization_4
|
55
55
|
h = PF.batch_normalization(h, (1,), 0.9, 0.0001, not test, name='BatchNormalization_4')
|
56
56
|
# Softmax
|
7
誤字
title
CHANGED
File without changes
|
body
CHANGED
@@ -94,7 +94,7 @@
|
|
94
94
|
ydata = 0
|
95
95
|
new_name = pd.Series([xdata,ydata],index=f.columns)
|
96
96
|
f = f.append(new_name, ignore_index=True)
|
97
|
-
f.to_csv('
|
97
|
+
f.to_csv('valu.csv',index=False,header = True )
|
98
98
|
|
99
99
|
test_data = data_iterator_csv_dataset("C:\Users\username\Desktop\output\valu.csv",1,shuffle=False,normalize=True)
|
100
100
|
|
@@ -112,7 +112,7 @@
|
|
112
112
|
ydata = 0
|
113
113
|
new_name = pd.Series([xdata,ydata],index=f.columns)
|
114
114
|
f = f.append(new_name, ignore_index=True)
|
115
|
-
f.to_csv('
|
115
|
+
f.to_csv('valu.csv',index=False,header = True )
|
116
116
|
|
117
117
|
test_data = data_iterator_csv_dataset("C:\Users\username\Desktop\output\valu.csv",1,shuffle=False,normalize=True)
|
118
118
|
|
6
誤字
title
CHANGED
File without changes
|
body
CHANGED
@@ -94,7 +94,7 @@
|
|
94
94
|
ydata = 0
|
95
95
|
new_name = pd.Series([xdata,ydata],index=f.columns)
|
96
96
|
f = f.append(new_name, ignore_index=True)
|
97
|
-
f.to_csv('C:\Users\
|
97
|
+
f.to_csv('C:\Users\username\Desktop\output\valu.csv',index=False,header = True )
|
98
98
|
|
99
99
|
test_data = data_iterator_csv_dataset("C:\Users\username\Desktop\output\valu.csv",1,shuffle=False,normalize=True)
|
100
100
|
|
5
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -6,41 +6,14 @@
|
|
6
6
|
|
7
7
|
|
8
8
|
#エラー文
|
9
|
-
|
9
|
+
File "C:\Users\username\Desktop\output\capture.py", line 106, in <module>
|
10
|
-
2021-01-13 16:39:22,969 [nnabla][INFO]: Initializing CPU extension...
|
11
|
-
2021-01-13 16:39:26,948 [nnabla][INFO]: DataSource with shuffle(False)
|
12
|
-
2021-01-13 16:39:26,950 [nnabla][INFO]: Using DataSourceWithFileCache
|
13
|
-
2021-01-13 16:39:26,950 [nnabla][INFO]: DataSource with shuffle(False)
|
14
|
-
2021-01-13 16:39:26,951 [nnabla][INFO]: Cache Directory is None
|
15
|
-
2021-01-13 16:39:26,951 [nnabla][INFO]: Cache size is 100
|
16
|
-
2021-01-13 16:39:26,952 [nnabla][INFO]: Num of thread is 10
|
17
|
-
2021-01-13 16:39:26,953 [nnabla][INFO]: Cache file format is .npy
|
18
|
-
2021-01-13 16:39:26,956 [nnabla][INFO]: Tempdir for cache C:\Users\NOGAMI~1\AppData\Local\Temp\tmpnhsqprkl created.
|
19
|
-
2021-01-13 16:39:26,972 [nnabla][INFO]: Creating cache file C:\Users\NOGAMI~1\AppData\Local\Temp\tmpnhsqprkl\cache_00000000_00000000.npy
|
20
|
-
2021-01-13 16:39:26,981 [nnabla][INFO]: Using DataSourceWithMemoryCache
|
21
|
-
2021-01-13 16:39:26,981 [nnabla][INFO]: DataSource with shuffle(False)
|
22
|
-
2021-01-13 16:39:26,984 [nnabla][INFO]: On-memory
|
23
|
-
2021-01-13 16:39:26,984 [nnabla][INFO]: Using DataIterator
|
24
|
-
2021-01-13 16:39:26,987 [nnabla][INFO]: Parameter load (<built-in function format>): C:\Users\username\Desktop\output\yubidata.files\20210113_161413\results.nnp
|
25
|
-
|
10
|
+
y = network(x, t)
|
26
11
|
|
27
|
-
File "C:\Users\username\Desktop\output\capture.py", line
|
12
|
+
File "C:\Users\username\Desktop\output\capture.py", line 16, in network
|
28
|
-
|
13
|
+
h = PF.binary_connect_affine(x, name='BinaryConnectAffine')
|
29
14
|
|
30
|
-
|
15
|
+
TypeError: binary_connect_affine() missing 1 required positional argument: 'n_outmaps'
|
31
|
-
with get_file_handle_load(path, ext) as nnp:
|
32
16
|
|
33
|
-
File "C:\Users\username\anaconda3\lib\contextlib.py", line 113, in __enter__
|
34
|
-
return next(self.gen)
|
35
|
-
|
36
|
-
File "C:\Users\username\anaconda3\lib\site-packages\nnabla\utils\get_file_handle.py", line 25, in get_file_handle_load
|
37
|
-
f = zipfile.ZipFile(path, 'r')
|
38
|
-
|
39
|
-
File "C:\Users\username\anaconda3\lib\zipfile.py", line 1250, in __init__
|
40
|
-
self.fp = io.open(file, filemode)
|
41
|
-
|
42
|
-
OSError: [Errno 22] Invalid argument: '\u202aC:\Users\username\Desktop\output\yubidata.files\20210113_161413\results.nnp'
|
43
|
-
|
44
17
|
#プログラム
|
45
18
|
```python
|
46
19
|
import nnabla as nn
|
4
新しいエラー
title
CHANGED
File without changes
|
body
CHANGED
@@ -150,7 +150,7 @@
|
|
150
150
|
t = nn.Variable((1,1))
|
151
151
|
y = network(x, t)
|
152
152
|
|
153
|
-
nn.load_parameters('C:\Users\username\Desktop\output\yubidata.files\
|
153
|
+
nn.load_parameters('C:\Users\username\Desktop\output\yubidata.files\20210113_161413\results.nnp')
|
154
154
|
print("load model")
|
155
155
|
|
156
156
|
for i in range(test_data.size):
|
3
新しいエラー
title
CHANGED
File without changes
|
body
CHANGED
@@ -25,7 +25,7 @@
|
|
25
25
|
Traceback (most recent call last):
|
26
26
|
|
27
27
|
File "C:\Users\username\Desktop\output\capture.py", line 85, in <module>
|
28
|
-
nn.load_parameters('C:\Users\
|
28
|
+
nn.load_parameters('C:\Users\username\Desktop\output\yubidata.files\20210113_161413\results.nnp')
|
29
29
|
|
30
30
|
File "C:\Users\username\anaconda3\lib\site-packages\nnabla\parameter.py", line 401, in load_parameters
|
31
31
|
with get_file_handle_load(path, ext) as nnp:
|
2
新しいエラー
title
CHANGED
File without changes
|
body
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
|
8
8
|
#エラー文
|
9
|
-
runfile('C:/Users/
|
9
|
+
runfile('C:/Users/username/Desktop/output/capture.py', wdir='C:/Users/username/Desktop/output')
|
10
10
|
2021-01-13 16:39:22,969 [nnabla][INFO]: Initializing CPU extension...
|
11
11
|
2021-01-13 16:39:26,948 [nnabla][INFO]: DataSource with shuffle(False)
|
12
12
|
2021-01-13 16:39:26,950 [nnabla][INFO]: Using DataSourceWithFileCache
|
1
新しいエラー
title
CHANGED
File without changes
|
body
CHANGED
@@ -6,14 +6,41 @@
|
|
6
6
|
|
7
7
|
|
8
8
|
#エラー文
|
9
|
-
|
9
|
+
runfile('C:/Users/nogamitakuma/Desktop/output/capture.py', wdir='C:/Users/nogamitakuma/Desktop/output')
|
10
|
+
2021-01-13 16:39:22,969 [nnabla][INFO]: Initializing CPU extension...
|
11
|
+
2021-01-13 16:39:26,948 [nnabla][INFO]: DataSource with shuffle(False)
|
12
|
+
2021-01-13 16:39:26,950 [nnabla][INFO]: Using DataSourceWithFileCache
|
13
|
+
2021-01-13 16:39:26,950 [nnabla][INFO]: DataSource with shuffle(False)
|
14
|
+
2021-01-13 16:39:26,951 [nnabla][INFO]: Cache Directory is None
|
15
|
+
2021-01-13 16:39:26,951 [nnabla][INFO]: Cache size is 100
|
16
|
+
2021-01-13 16:39:26,952 [nnabla][INFO]: Num of thread is 10
|
17
|
+
2021-01-13 16:39:26,953 [nnabla][INFO]: Cache file format is .npy
|
18
|
+
2021-01-13 16:39:26,956 [nnabla][INFO]: Tempdir for cache C:\Users\NOGAMI~1\AppData\Local\Temp\tmpnhsqprkl created.
|
19
|
+
2021-01-13 16:39:26,972 [nnabla][INFO]: Creating cache file C:\Users\NOGAMI~1\AppData\Local\Temp\tmpnhsqprkl\cache_00000000_00000000.npy
|
20
|
+
2021-01-13 16:39:26,981 [nnabla][INFO]: Using DataSourceWithMemoryCache
|
21
|
+
2021-01-13 16:39:26,981 [nnabla][INFO]: DataSource with shuffle(False)
|
22
|
+
2021-01-13 16:39:26,984 [nnabla][INFO]: On-memory
|
23
|
+
2021-01-13 16:39:26,984 [nnabla][INFO]: Using DataIterator
|
24
|
+
2021-01-13 16:39:26,987 [nnabla][INFO]: Parameter load (<built-in function format>): C:\Users\username\Desktop\output\yubidata.files\20210113_161413\results.nnp
|
10
|
-
|
25
|
+
Traceback (most recent call last):
|
11
26
|
|
12
|
-
File "C:\Users\username\Desktop\output\capture.py", line
|
27
|
+
File "C:\Users\username\Desktop\output\capture.py", line 85, in <module>
|
13
|
-
|
28
|
+
nn.load_parameters('C:\Users\nogamitakuma\Desktop\output\yubidata.files\20210113_161413\results.nnp')
|
14
29
|
|
15
|
-
|
30
|
+
File "C:\Users\username\anaconda3\lib\site-packages\nnabla\parameter.py", line 401, in load_parameters
|
31
|
+
with get_file_handle_load(path, ext) as nnp:
|
16
32
|
|
33
|
+
File "C:\Users\username\anaconda3\lib\contextlib.py", line 113, in __enter__
|
34
|
+
return next(self.gen)
|
35
|
+
|
36
|
+
File "C:\Users\username\anaconda3\lib\site-packages\nnabla\utils\get_file_handle.py", line 25, in get_file_handle_load
|
37
|
+
f = zipfile.ZipFile(path, 'r')
|
38
|
+
|
39
|
+
File "C:\Users\username\anaconda3\lib\zipfile.py", line 1250, in __init__
|
40
|
+
self.fp = io.open(file, filemode)
|
41
|
+
|
42
|
+
OSError: [Errno 22] Invalid argument: '\u202aC:\Users\username\Desktop\output\yubidata.files\20210113_161413\results.nnp'
|
43
|
+
|
17
44
|
#プログラム
|
18
45
|
```python
|
19
46
|
import nnabla as nn
|