付属コードを実行したいのですが,
以下のようなエラーが出ます
バッチサイズを減らしてみましたが, それでもこのエラーは出ます.
何か他に対処法はございますでしょうか
Python
1python fcn-12.3.1.py --train 22022-05-27 14:44:22.472707: I tensorflow/core/platform/cpu_feature_guard.cc:151] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX AVX2 3To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. 42022-05-27 14:44:22.780566: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1525] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 30720 MB memory: -> device: 0, name: NVIDIA GeForce RTX 3060 Laptop GPU, pci bus id: 0000:01:00.0, compute capability: 8.6 51 Physical GPUs, 1 Logical GPUs 62022-05-27 14:44:23.746268: I tensorflow/stream_executor/cuda/cuda_driver.cc:739] failed to allocate 30.00G (32212254720 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 7省略 8DNN library is not found. 9 [[{{node fcn/ResNet56v2/conv2d/Conv2D}}]] [Op:__inference_train_function_18251] 102022-05-27 15:02:19.731278: W tensorflow/core/kernels/data/generator_dataset_op.cc:107] Error occurred when finalizing GeneratorDataset iterator: FAILED_PRECONDITION: Python interpreter state is not initialized. The process may be terminated. 11 12
実行したいコードはこちらです.
https://github.com/PacktPublishing/Advanced-Deep-Learning-with-Keras/tree/master/chapter12-segmentation
環境について
環境
NVIDIA GEFORCE RTX 3060
CUDA 11.4
tensorflow-gpu 2.7.0
> バッチサイズを減らしてみましたが, それでもこのエラーは出ます.
バッチサイズを減らしたら、
failed to allocate 30.00G (32212254720 bytes)
の「32212254720 bytes」の数値はどうなりますでしょうか?

回答1件
あなたの回答
tips
プレビュー