質問編集履歴

1

batch sizeが原因かと思い追記

2021/12/16 12:54

投稿

Yoshiki0208
Yoshiki0208

スコア1

test CHANGED
File without changes
test CHANGED
@@ -82,11 +82,11 @@
82
82
 
83
83
  history = model.fit(
84
84
 
85
- File "C:\Users\kita3\AppData\Local\Programs\Python\Python38\lib\site-packages\keras\utils\traceback_utils.py", line 67, in error_handler
85
+ File "C:\Users\コンピュータ名\AppData\Local\Programs\Python\Python38\lib\site-packages\keras\utils\traceback_utils.py", line 67, in error_handler
86
86
 
87
87
  raise e.with_traceback(filtered_tb) from None
88
88
 
89
- File "C:\Users\kita3\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\framework\func_graph.py", line 1129, in autograph_handler
89
+ File "C:\Users\コンピュータ名\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\framework\func_graph.py", line 1129, in autograph_handler
90
90
 
91
91
  raise e.ag_error_metadata.to_exception(e)
92
92
 
@@ -94,43 +94,43 @@
94
94
 
95
95
 
96
96
 
97
- File "C:\Users\kita3\AppData\Local\Programs\Python\Python38\lib\site-packages\keras\engine\training.py", line 878, in train_function *
97
+ File "C:\Users\コンピュータ名\AppData\Local\Programs\Python\Python38\lib\site-packages\keras\engine\training.py", line 878, in train_function *
98
98
 
99
99
  return step_function(self, iterator)
100
100
 
101
- File "C:\Users\kita3\AppData\Local\Programs\Python\Python38\lib\site-packages\keras\engine\training.py", line 867, in step_function **
101
+ File "C:\Users\コンピュータ名\AppData\Local\Programs\Python\Python38\lib\site-packages\keras\engine\training.py", line 867, in step_function **
102
102
 
103
103
  outputs = model.distribute_strategy.run(run_step, args=(data,))
104
104
 
105
- File "C:\Users\kita3\AppData\Local\Programs\Python\Python38\lib\site-packages\keras\engine\training.py", line 860, in run_step **
105
+ File "C:\Users\コンピュータ名\AppData\Local\Programs\Python\Python38\lib\site-packages\keras\engine\training.py", line 860, in run_step **
106
106
 
107
107
  outputs = model.train_step(data)
108
108
 
109
- File "C:\Users\kita3\AppData\Local\Programs\Python\Python38\lib\site-packages\keras\engine\training.py", line 816, in train_step
109
+ File "C:\Users\コンピュータ名\AppData\Local\Programs\Python\Python38\lib\site-packages\keras\engine\training.py", line 816, in train_step
110
110
 
111
111
  self.optimizer.minimize(loss, self.trainable_variables, tape=tape)
112
112
 
113
- File "C:\Users\kita3\AppData\Local\Programs\Python\Python38\lib\site-packages\keras\optimizer_v2\optimizer_v2.py", line 532, in minimize
113
+ File "C:\Users\コンピュータ名\AppData\Local\Programs\Python\Python38\lib\site-packages\keras\optimizer_v2\optimizer_v2.py", line 532, in minimize
114
114
 
115
115
  return self.apply_gradients(grads_and_vars, name=name)
116
116
 
117
- File "C:\Users\kita3\AppData\Local\Programs\Python\Python38\lib\site-packages\keras\optimizer_v2\optimizer_v2.py", line 639, in apply_gradients
117
+ File "C:\Users\コンピュータ名\AppData\Local\Programs\Python\Python38\lib\site-packages\keras\optimizer_v2\optimizer_v2.py", line 639, in apply_gradients
118
118
 
119
119
  self._create_all_weights(var_list)
120
120
 
121
- File "C:\Users\kita3\AppData\Local\Programs\Python\Python38\lib\site-packages\keras\optimizer_v2\optimizer_v2.py", line 830, in _create_all_weights
121
+ File "C:\Users\コンピュータ名\AppData\Local\Programs\Python\Python38\lib\site-packages\keras\optimizer_v2\optimizer_v2.py", line 830, in _create_all_weights
122
122
 
123
123
  self._create_slots(var_list)
124
124
 
125
- File "C:\Users\kita3\AppData\Local\Programs\Python\Python38\lib\site-packages\keras\optimizer_v2\adam.py", line 119, in _create_slots
125
+ File "C:\Users\コンピュータ名\AppData\Local\Programs\Python\Python38\lib\site-packages\keras\optimizer_v2\adam.py", line 119, in _create_slots
126
126
 
127
127
  self.add_slot(var, 'v')
128
128
 
129
- File "C:\Users\kita3\AppData\Local\Programs\Python\Python38\lib\site-packages\keras\optimizer_v2\optimizer_v2.py", line 916, in add_slot
129
+ File "C:\Users\コンピュータ名\AppData\Local\Programs\Python\Python38\lib\site-packages\keras\optimizer_v2\optimizer_v2.py", line 916, in add_slot
130
130
 
131
131
  weight = tf.Variable(
132
132
 
133
- File "C:\Users\kita3\AppData\Local\Programs\Python\Python38\lib\site-packages\keras\initializers\initializers_v2.py", line 144, in __call__
133
+ File "C:\Users\コンピュータ名\AppData\Local\Programs\Python\Python38\lib\site-packages\keras\initializers\initializers_v2.py", line 144, in __call__
134
134
 
135
135
  return tf.zeros(shape, dtype)
136
136
 
@@ -388,6 +388,8 @@
388
388
 
389
389
  ソースコード内の変更がございましたらご教授いただきたいです。
390
390
 
391
+ Batch sizeの変更方法もご教授いただきたいです。
392
+
391
393
 
392
394
 
393
395
  ### 補足情報(FW/ツールのバージョンなど)
@@ -402,7 +404,7 @@
402
404
 
403
405
  NVIDIA グラフィックスドライバー 497.09
404
406
 
405
-
407
+  
406
408
 
407
409
  稚拙な文になり申し訳ないです。
408
410