質問編集履歴
2
情報の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -237,3 +237,35 @@
|
|
237
237
|
tensorflow.python.framework.errors_impl.NotFoundError: Desktop/cifartest/cifarbatches/data_batch_1.bin
|
238
238
|
|
239
239
|
とエラーが出ました。
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
教えてもらったファイルを
|
244
|
+
|
245
|
+
```ここに言語を入力
|
246
|
+
|
247
|
+
import tensorflow as tf
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
def main(argv):
|
254
|
+
|
255
|
+
print(tf.app.flags.FLAGS.graph_file)
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
if __name__ == "__main__":
|
262
|
+
|
263
|
+
tf.app.flags.DEFINE_string("graph_file", None, "File path")
|
264
|
+
|
265
|
+
tf.app.run(main)
|
266
|
+
|
267
|
+
```
|
268
|
+
|
269
|
+
test.pyと置いてpython test.py --graph_file Desktop/cifar 3/cifar-10-batches-bin 2/data_batch_1.bin と実行すると
|
270
|
+
|
271
|
+
Desktop/cifar と出力され正常に動いていると思いました。
|
1
情報の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -187,3 +187,53 @@
|
|
187
187
|
```
|
188
188
|
|
189
189
|
と書きました。
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
python visualize_weights.py --graph_file ./cifar-10-batches-bin 2/data_batch_1.bin と--graph_file に書き直してファイルを実行すると
|
194
|
+
|
195
|
+
```ここに言語を入力
|
196
|
+
|
197
|
+
Traceback (most recent call last):
|
198
|
+
|
199
|
+
File "visualize_weights.py", line 73, in <module>
|
200
|
+
|
201
|
+
visualize(FLAGS.graph_file)
|
202
|
+
|
203
|
+
File "visualize_weights.py", line 25, in visualize
|
204
|
+
|
205
|
+
graph_def.ParseFromString(f.read())
|
206
|
+
|
207
|
+
File "/Users/XXX/anaconda/envs/py36/lib/python3.6/site-packages/tensorflow/python/lib/io/file_io.py", line 106, in read
|
208
|
+
|
209
|
+
self._preread_check()
|
210
|
+
|
211
|
+
File "/Users/XXX/anaconda/envs/py36/lib/python3.6/site-packages/tensorflow/python/lib/io/file_io.py", line 73, in _preread_check
|
212
|
+
|
213
|
+
compat.as_bytes(self.__name), 1024 * 512, status)
|
214
|
+
|
215
|
+
File "/Users/XXX/anaconda/envs/py36/lib/python3.6/contextlib.py", line 89, in __exit__
|
216
|
+
|
217
|
+
next(self.gen)
|
218
|
+
|
219
|
+
File "/Users/XXX/anaconda/envs/py36/lib/python3.6/site-packages/tensorflow/python/framework/errors_impl.py", line 469, in raise_exception_on_not_ok_status
|
220
|
+
|
221
|
+
pywrap_tensorflow.TF_GetCode(status))
|
222
|
+
|
223
|
+
tensorflow.python.framework.errors_impl.NotFoundError: ./cifar-10-batches-bin
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
```
|
228
|
+
|
229
|
+
とエラーが出ました。アプリを置いている場所からファイルのパスを指定して
|
230
|
+
|
231
|
+
python visualize_weights.py --graph_file Desktop/cifar 3/cifar-10-batches-bin 2/data_batch_1.bin
|
232
|
+
|
233
|
+
も
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
tensorflow.python.framework.errors_impl.NotFoundError: Desktop/cifartest/cifarbatches/data_batch_1.bin
|
238
|
+
|
239
|
+
とエラーが出ました。
|