質問編集履歴

5

画像を編集しました.

2020/12/22 09:07

投稿

masaosa
masaosa

スコア18

test CHANGED
File without changes
test CHANGED
@@ -473,5 +473,3 @@
473
473
  Code2をPCを再起動して実行したところ動きました.
474
474
 
475
475
  ![イメージ説明](4e83dc96eca85e2d16671b874b695131.png)
476
-
477
- ![イメージ説明](83dca1a7a4273ab9ba9bb121e0bebf04.png)

4

PCを再起動して実行したら動いたため.

2020/12/22 09:07

投稿

masaosa
masaosa

スコア18

test CHANGED
File without changes
test CHANGED
@@ -473,3 +473,5 @@
473
473
  Code2をPCを再起動して実行したところ動きました.
474
474
 
475
475
  ![イメージ説明](4e83dc96eca85e2d16671b874b695131.png)
476
+
477
+ ![イメージ説明](83dca1a7a4273ab9ba9bb121e0bebf04.png)

3

PCを再起動して実行したら動いたため.

2020/12/22 04:11

投稿

masaosa
masaosa

スコア18

test CHANGED
File without changes
test CHANGED
@@ -465,3 +465,11 @@
465
465
  train_function
466
466
 
467
467
  ```
468
+
469
+
470
+
471
+ ### 追記
472
+
473
+ Code2をPCを再起動して実行したところ動きました.
474
+
475
+ ![イメージ説明](4e83dc96eca85e2d16671b874b695131.png)

2

質問者さんからの助言を試したことを追記し,その際のエラーコードも追記しました..

2020/12/22 03:56

投稿

masaosa
masaosa

スコア18

test CHANGED
File without changes
test CHANGED
@@ -160,7 +160,7 @@
160
160
 
161
161
 
162
162
 
163
-
163
+ ```
164
164
 
165
165
  でCUDA,cudnnが出てきません.
166
166
 
@@ -198,6 +198,8 @@
198
198
 
199
199
  以下がエラーメッセージでした.特に問題の原因となるような言葉は書いてなさそうです..
200
200
 
201
+
202
+
201
203
  ```python
202
204
 
203
205
  UnknownError Traceback (most recent call last)
@@ -452,8 +454,6 @@
452
454
 
453
455
  ```python
454
456
 
455
-
456
-
457
457
  UnknownError: Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try looking to see if a warning log message was printed above.
458
458
 
459
459
  [[node sequential/conv2d/Relu (defined at <ipython-input-2-de4210406d90>:13) ]] [Op:__inference_train_function_853]

1

質問者さんからの助言を試したことを追記し,その際のエラーコードも追記しました..

2020/12/21 22:42

投稿

masaosa
masaosa

スコア18

test CHANGED
File without changes
test CHANGED
@@ -140,153 +140,7 @@
140
140
 
141
141
  future 0.18.2 pypi_0 pypi
142
142
 
143
- gast 0.3.3 pypi_0 pypi
143
+
144
-
145
- google-auth 1.24.0 pypi_0 pypi
146
-
147
- google-auth-oauthlib 0.4.2 pypi_0 pypi
148
-
149
- google-pasta 0.2.0 pypi_0 pypi
150
-
151
- googleapis-common-protos 1.52.0 pypi_0 pypi
152
-
153
- grpcio 1.34.0 pypi_0 pypi
154
-
155
- h5py 2.10.0 pypi_0 pypi
156
-
157
- idna 2.10 pypi_0 pypi
158
-
159
- importlib-metadata 3.3.0 pypi_0 pypi
160
-
161
- importlib-resources 3.3.0 pypi_0 pypi
162
-
163
- importlib_metadata 2.0.0 1
164
-
165
- ipykernel 5.3.4 py37h5ca1d4c_0
166
-
167
- ipython 7.19.0 py37hd4e2768_0
168
-
169
- ipython_genutils 0.2.0 pyhd3eb1b0_1
170
-
171
- ipywidgets 7.5.1 pypi_0 pypi
172
-
173
- jedi 0.17.0 py37_0
174
-
175
- jinja2 2.11.2 py_0
176
-
177
- jsonschema 3.2.0 py_2
178
-
179
- jupyter_client 6.1.7 py_0
180
-
181
- jupyter_core 4.7.0 py37haa95532_0
182
-
183
- jupyterlab_pygments 0.1.2 py_0
184
-
185
- keras 2.4.3 pypi_0 pypi
186
-
187
- keras-preprocessing 1.1.2 pypi_0 pypi
188
-
189
- kiwisolver 1.3.1 pypi_0 pypi
190
-
191
- libsodium 1.0.18 h62dcd97_0
192
-
193
- m2w64-gcc-libgfortran 5.3.0 6
194
-
195
- m2w64-gcc-libs 5.3.0 7
196
-
197
- m2w64-gcc-libs-core 5.3.0 7
198
-
199
- m2w64-gmp 6.1.0 2
200
-
201
- m2w64-libwinpthread-git 5.0.0.4634.697f757 2
202
-
203
- markdown 3.3.3 pypi_0 pypi
204
-
205
- markupsafe 1.1.1 py37hfa6e2cd_1
206
-
207
- matplotlib 3.3.3 pypi_0 pypi
208
-
209
- mistune 0.8.4 py37hfa6e2cd_1001
210
-
211
- msys2-conda-epoch 20160418 1
212
-
213
- nbclient 0.5.1 py_0
214
-
215
- nbconvert 6.0.7 py37_0
216
-
217
- nbformat 5.0.8 py_0
218
-
219
- nest-asyncio 1.4.3 pyhd3eb1b0_0
220
-
221
- notebook 6.1.5 py37haa95532_0
222
-
223
- numpy 1.18.5 pypi_0 pypi
224
-
225
- oauthlib 3.1.0 pypi_0 pypi
226
-
227
- openssl 1.1.1i h2bbff1b_0
228
-
229
- opt-einsum 3.3.0 pypi_0 pypi
230
-
231
- packaging 20.8 pyhd3eb1b0_0
232
-
233
- pandoc 2.11 h9490d1a_0
234
-
235
- pandocfilters 1.4.3 py37haa95532_1
236
-
237
- parso 0.8.1 pyhd3eb1b0_0
238
-
239
- pickleshare 0.7.5 pyhd3eb1b0_1003
240
-
241
- pillow 8.0.1 pypi_0 pypi
242
-
243
- pip 20.3.3 py37haa95532_0
244
-
245
- prometheus_client 0.9.0 pyhd3eb1b0_0
246
-
247
- promise 2.3 pypi_0 pypi
248
-
249
- prompt-toolkit 3.0.8 py_0
250
-
251
- protobuf 3.14.0 pypi_0 pypi
252
-
253
- pyasn1 0.4.8 pypi_0 pypi
254
-
255
- pyasn1-modules 0.2.8 pypi_0 pypi
256
-
257
- pycparser 2.20 py_2
258
-
259
- pygments 2.7.3 pyhd3eb1b0_0
260
-
261
- pyparsing 2.4.7 py_0
262
-
263
- pyrsistent 0.17.3 py37he774522_0
264
-
265
- python 3.7.9 h60c2a47_0
266
-
267
- python-dateutil 2.8.1 py_0
268
-
269
- pywin32 227 py37he774522_1
270
-
271
- pywinpty 0.5.7 py37_0
272
-
273
- pyyaml 5.3.1 pypi_0 pypi
274
-
275
- pyzmq 20.0.0 py37hd77b12b_1
276
-
277
- requests 2.25.1 pypi_0 pypi
278
-
279
- requests-oauthlib 1.3.0 pypi_0 pypi
280
-
281
- rsa 4.6 pypi_0 pypi
282
-
283
- scipy 1.4.1 pypi_0 pypi
284
-
285
- send2trash 1.5.0 pyhd3eb1b0_1
286
-
287
- setuptools 51.0.0 py37haa95532_2
288
-
289
- six 1.15.0 py37haa95532_0
290
144
 
291
145
  sqlite 3.33.0 h2a8f88b_0
292
146
 
@@ -304,60 +158,310 @@
304
158
 
305
159
  tensorflow-metadata 0.26.0 pypi_0 pypi
306
160
 
307
- termcolor 1.1.0 pypi_0 pypi
308
-
309
- terminado 0.9.1 py37_0
310
-
311
- testpath 0.4.4 py_0
312
-
313
- tornado 6.1 py37h2bbff1b_0
314
-
315
- tqdm 4.54.1 pypi_0 pypi
316
-
317
- traitlets 5.0.5 py_0
318
-
319
- typing-extensions 3.7.4.3 pypi_0 pypi
320
-
321
- urllib3 1.26.2 pypi_0 pypi
322
-
323
- vc 14.2 h21ff451_1
324
-
325
- vs2015_runtime 14.27.29016 h5e58377_2
326
-
327
- wcwidth 0.2.5 py_0
328
-
329
- webencodings 0.5.1 py37_1
330
-
331
- werkzeug 1.0.1 pypi_0 pypi
332
-
333
- wheel 0.36.2 pyhd3eb1b0_0
334
-
335
- widgetsnbextension 3.5.1 pypi_0 pypi
336
-
337
- wincertstore 0.2 py37_0
338
-
339
- winpty 0.4.3 4
340
-
341
- wrapt 1.12.1 pypi_0 pypi
342
-
343
- zeromq 4.3.3 ha925a31_3
344
-
345
- zipp 3.4.0 pyhd3eb1b0_0
346
-
347
- zlib 1.2.11 h62dcd97_4
161
+
162
+
163
+
164
+
165
+ でCUDA,cudnnが出てきません.
166
+
167
+ PATHは以下のように通してます.
168
+
169
+ ![イメージ説明](03273a1adeb934b645f8b8e7d9daa46a.png)
170
+
171
+
172
+
173
+
174
+
175
+ 原因が分かりません.ご教授よろしくお願いいたします.
176
+
177
+
178
+
179
+
180
+
181
+
182
+
183
+
184
+
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+ ### 追記
194
+
195
+ > 「try looking to see if a warning log message was printed above.」
196
+
197
+ と書いてありますけど、それより上には関係してそうなメッセージは何か書かれてませんか?
198
+
199
+ 以下がエラーメッセージでした.特に問題の原因となるような言葉は書いてなさそうです..
200
+
201
+ ```python
202
+
203
+ UnknownError Traceback (most recent call last)
204
+
205
+ <ipython-input-15-284f1d86293d> in <module>
206
+
207
+ 6 discriminator_x = pix2pix.discriminator(norm_type='instancenorm', target=False)
208
+
209
+ 7 discriminator_y = pix2pix.discriminator(norm_type='instancenorm', target=False)
210
+
211
+ ----> 8 to_zebra = generator_g(sample_horse)
212
+
213
+ 9 to_horse = generator_f(sample_zebra)
214
+
215
+ 10 plt.figure(figsize=(8, 8))
216
+
217
+
218
+
219
+ ~\anaconda3\envs\DEP3\lib\site-packages\tensorflow\python\keras\engine\base_layer.py in __call__(self, *args, **kwargs)
220
+
221
+ 983
222
+
223
+ 984 with ops.enable_auto_cast_variables(self._compute_dtype_object):
224
+
225
+ --> 985 outputs = call_fn(inputs, *args, **kwargs)
226
+
227
+ 986
228
+
229
+ 987 if self._activity_regularizer:
230
+
231
+
232
+
233
+ ~\anaconda3\envs\DEP3\lib\site-packages\tensorflow\python\keras\engine\functional.py in call(self, inputs, training, mask)
234
+
235
+ 384 """
236
+
237
+ 385 return self._run_internal_graph(
238
+
239
+ --> 386 inputs, training=training, mask=mask)
240
+
241
+ 387
242
+
243
+ 388 def compute_output_shape(self, input_shape):
244
+
245
+
246
+
247
+ ~\anaconda3\envs\DEP3\lib\site-packages\tensorflow\python\keras\engine\functional.py in _run_internal_graph(self, inputs, training, mask)
248
+
249
+ 506
250
+
251
+ 507 args, kwargs = node.map_arguments(tensor_dict)
252
+
253
+ --> 508 outputs = node.layer(*args, **kwargs)
254
+
255
+ 509
256
+
257
+ 510 # Update tensor_dict.
258
+
259
+
260
+
261
+ ~\anaconda3\envs\DEP3\lib\site-packages\tensorflow\python\keras\engine\base_layer.py in __call__(self, *args, **kwargs)
262
+
263
+ 983
264
+
265
+ 984 with ops.enable_auto_cast_variables(self._compute_dtype_object):
266
+
267
+ --> 985 outputs = call_fn(inputs, *args, **kwargs)
268
+
269
+ 986
270
+
271
+ 987 if self._activity_regularizer:
272
+
273
+
274
+
275
+ ~\anaconda3\envs\DEP3\lib\site-packages\tensorflow\python\keras\engine\sequential.py in call(self, inputs, training, mask)
276
+
277
+ 370 if not self.built:
278
+
279
+ 371 self._init_graph_network(self.inputs, self.outputs)
280
+
281
+ --> 372 return super(Sequential, self).call(inputs, training=training, mask=mask)
282
+
283
+ 373
284
+
285
+ 374 outputs = inputs # handle the corner case where self.layers is empty
286
+
287
+
288
+
289
+ ~\anaconda3\envs\DEP3\lib\site-packages\tensorflow\python\keras\engine\functional.py in call(self, inputs, training, mask)
290
+
291
+ 384 """
292
+
293
+ 385 return self._run_internal_graph(
294
+
295
+ --> 386 inputs, training=training, mask=mask)
296
+
297
+ 387
298
+
299
+ 388 def compute_output_shape(self, input_shape):
300
+
301
+
302
+
303
+ ~\anaconda3\envs\DEP3\lib\site-packages\tensorflow\python\keras\engine\functional.py in _run_internal_graph(self, inputs, training, mask)
304
+
305
+ 506
306
+
307
+ 507 args, kwargs = node.map_arguments(tensor_dict)
308
+
309
+ --> 508 outputs = node.layer(*args, **kwargs)
310
+
311
+ 509
312
+
313
+ 510 # Update tensor_dict.
314
+
315
+
316
+
317
+ ~\anaconda3\envs\DEP3\lib\site-packages\tensorflow\python\keras\engine\base_layer.py in __call__(self, *args, **kwargs)
318
+
319
+ 983
320
+
321
+ 984 with ops.enable_auto_cast_variables(self._compute_dtype_object):
322
+
323
+ --> 985 outputs = call_fn(inputs, *args, **kwargs)
324
+
325
+ 986
326
+
327
+ 987 if self._activity_regularizer:
328
+
329
+
330
+
331
+ ~\anaconda3\envs\DEP3\lib\site-packages\tensorflow\python\keras\layers\convolutional.py in call(self, inputs)
332
+
333
+ 245 inputs = array_ops.pad(inputs, self._compute_causal_padding(inputs))
334
+
335
+ 246
336
+
337
+ --> 247 outputs = self._convolution_op(inputs, self.kernel)
338
+
339
+ 248
340
+
341
+ 249 if self.use_bias:
342
+
343
+
344
+
345
+ ~\anaconda3\envs\DEP3\lib\site-packages\tensorflow\python\util\dispatch.py in wrapper(*args, **kwargs)
346
+
347
+ 199 """Call target, and fall back on dispatchers if there is a TypeError."""
348
+
349
+ 200 try:
350
+
351
+ --> 201 return target(*args, **kwargs)
352
+
353
+ 202 except (TypeError, ValueError):
354
+
355
+ 203 # Note: convert_to_eager_tensor currently raises a ValueError, not a
356
+
357
+
358
+
359
+ ~\anaconda3\envs\DEP3\lib\site-packages\tensorflow\python\ops\nn_ops.py in convolution_v2(input, filters, strides, padding, data_format, dilations, name)
360
+
361
+ 1016 data_format=data_format,
362
+
363
+ 1017 dilations=dilations,
364
+
365
+ -> 1018 name=name)
366
+
367
+ 1019
368
+
369
+ 1020
370
+
371
+
372
+
373
+ ~\anaconda3\envs\DEP3\lib\site-packages\tensorflow\python\ops\nn_ops.py in convolution_internal(input, filters, strides, padding, data_format, dilations, name, call_from_convolution, num_spatial_dims)
374
+
375
+ 1146 data_format=data_format,
376
+
377
+ 1147 dilations=dilations,
378
+
379
+ -> 1148 name=name)
380
+
381
+ 1149 else:
382
+
383
+ 1150 if channel_index == 1:
384
+
385
+
386
+
387
+ ~\anaconda3\envs\DEP3\lib\site-packages\tensorflow\python\ops\nn_ops.py in _conv2d_expanded_batch(input, filters, strides, padding, data_format, dilations, name)
388
+
389
+ 2590 data_format=data_format,
390
+
391
+ 2591 dilations=dilations,
392
+
393
+ -> 2592 name=name)
394
+
395
+ 2593 return squeeze_batch_dims(
396
+
397
+ 2594 input,
398
+
399
+
400
+
401
+ ~\anaconda3\envs\DEP3\lib\site-packages\tensorflow\python\ops\gen_nn_ops.py in conv2d(input, filter, strides, padding, use_cudnn_on_gpu, explicit_paddings, data_format, dilations, name)
402
+
403
+ 936 return _result
404
+
405
+ 937 except _core._NotOkStatusException as e:
406
+
407
+ --> 938 _ops.raise_from_not_ok_status(e, name)
408
+
409
+ 939 except _core._FallbackException:
410
+
411
+ 940 pass
412
+
413
+
414
+
415
+ ~\anaconda3\envs\DEP3\lib\site-packages\tensorflow\python\framework\ops.py in raise_from_not_ok_status(e, name)
416
+
417
+ 6841 message = e.message + (" name: " + name if name is not None else "")
418
+
419
+ 6842 # pylint: disable=protected-access
420
+
421
+ -> 6843 six.raise_from(core._status_to_exception(e.code, message), None)
422
+
423
+ 6844 # pylint: enable=protected-access
424
+
425
+ 6845
426
+
427
+
428
+
429
+ ~\anaconda3\envs\DEP3\lib\site-packages\six.py in raise_from(value, from_value)
430
+
431
+
432
+
433
+ UnknownError: Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try looking to see if a warning log message was printed above. [Op:Conv2D]
348
434
 
349
435
  ```
350
436
 
351
437
 
352
438
 
439
+
440
+
441
+ > [https://teratail.com/questions/306602
442
+
443
+ ](https://teratail.com/questions/306602)
444
+
353
- CUDA,cudnnが出てきません.
445
+ の「Code2」をGPU有り環境で実行すると
354
-
355
- PATHは以下のように通してます.
446
+
356
-
357
- ![イメージ説明](03273a1adeb934b645f8b8e7d9daa46a.png)
447
+
358
-
359
-
360
-
361
-
362
-
448
+
363
- 原因分かりせん.ご教授よろくお願いいします
449
+ 上記のコードを実行したところ同じようなエラーました...
450
+
451
+
452
+
453
+ ```python
454
+
455
+
456
+
457
+ UnknownError: Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try looking to see if a warning log message was printed above.
458
+
459
+ [[node sequential/conv2d/Relu (defined at <ipython-input-2-de4210406d90>:13) ]] [Op:__inference_train_function_853]
460
+
461
+
462
+
463
+ Function call stack:
464
+
465
+ train_function
466
+
467
+ ```