前提・実現したいこと
github上にあるzipファイルをダウンロードして、
ソースコードなど何も手を加えずに実行してみたところ、
エラーは出ません(WARNINGは出る)が、GPUメモリの使用率が100%になり、結果が得られません。
NVIDIA RTX2060(メモリ8GB) , RTX2080(メモリ8GB) , RTX3060(メモリ12GB) どれで試しても
GPUメモリの使用率が100%になり、どう対処したらいいかわからない状態に陥りました。
(SLIはしておりません、またできません)
試したこと
demo.pyのimport os(5行目) の下に
os.environ["TF_FORCE_GPU_ALLOW_GROWTH"]= "true"
を追加しましたが、使用率は100%で変わりませんでした。
実現したいこととしては、
ダウンロードしたプログラムを動かし、実行結果を得たいです。
参照github
https://github.com/Qidian213/deep_sort_yolov3
環境
os - windows10
GPU - NVIDIA RTX2060 or RTX3060 or RTX2080
CPU - AMD Ryzen 5 5600x
メモリ - 16GB x 2
CUDA - v10.0
cudnn - v7.4.2
Anaconda3
TensorFlow_gpu - 1.14.0
発生している問題・エラーメッセージ
WARNING:tensorflow:From C:\Users\anaconda3\envs\kami\lib\site-packages\keras\backend\tensorflow_backend.py:95: The name tf.reset_default_graph is deprecated. Please use tf.compat.v1.reset_default_graph instead. WARNING:tensorflow:From C:\Users\anaconda3\envs\kami\lib\site-packages\keras\backend\tensorflow_backend.py:98: The name tf.placeholder_with_default is deprecated. Please use tf.compat.v1.placeholder_with_default instead. WARNING:tensorflow:From C:\Users\anaconda3\envs\kami\lib\site-packages\keras\backend\tensorflow_backend.py:102: The name tf.get_default_graph is deprecated. Please use tf.compat.v1.get_default_graph instead. WARNING:tensorflow:From C:\Users\anaconda3\envs\kami\lib\site-packages\keras\backend\tensorflow_backend.py:174: The name tf.get_default_session is deprecated. Please use tf.compat.v1.get_default_session instead. WARNING:tensorflow:From C:\Users\anaconda3\envs\kami\lib\site-packages\keras\backend\tensorflow_backend.py:181: The name tf.ConfigProto is deprecated. Please use tf.compat.v1.ConfigProto instead. 2021-10-13 19:39:51.477343: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 2021-10-13 19:39:51.481463: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library nvcuda.dll 2021-10-13 19:39:51.505307: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1640] Found device 0 with properties: name: NVIDIA GeForce RTX 3060 major: 8 minor: 6 memoryClockRate(GHz): 1.837 pciBusID: 0000:07:00.0 2021-10-13 19:39:51.505454: I tensorflow/stream_executor/platform/default/dlopen_checker_stub.cc:25] GPU libraries are statically linked, skip dlopen check. 2021-10-13 19:39:51.506229: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1763] Adding visible gpu devices: 0 2021-10-13 19:39:52.137461: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1181] Device interconnect StreamExecutor with strength 1 edge matrix: 2021-10-13 19:39:52.137595: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1187] 0 2021-10-13 19:39:52.138918: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1200] 0: N 2021-10-13 19:39:52.139760: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1326] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 10625 MB memory) -> physical GPU (device: 0, name: NVIDIA GeForce RTX 3060, pci bus id: 0000:07:00.0, compute capability: 8.6) WARNING:tensorflow:From C:\Users\anaconda3\envs\kami\lib\site-packages\keras\backend\tensorflow_backend.py:1834: The name tf.nn.fused_batch_norm is deprecated. Please use tf.compat.v1.nn.fused_batch_norm instead. WARNING:tensorflow:From C:\Users\anaconda3\envs\kami\lib\site-packages\keras\backend\tensorflow_backend.py:2018: The name tf.image.resize_nearest_neighbor is deprecated. Please use tf.compat.v1.image.resize_nearest_neighbor instead. ./model_data/yolo.h5 model, anchors, and classes loaded. WARNING:tensorflow:From C:\Users\anaconda3\envs\kami\lib\site-packages\tensorflow\python\ops\array_ops.py:1354: add_dispatch_support.<locals>.wrapper (from tensorflow.python.ops.array_ops) is deprecated and will be removed in a future version. Instructions for updating: Use tf.where in 2.0, which has the same broadcast rule as np.where 2021-10-13 19:39:59.487290: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1640] Found device 0 with properties: name: NVIDIA GeForce RTX 3060 major: 8 minor: 6 memoryClockRate(GHz): 1.837 pciBusID: 0000:07:00.0 2021-10-13 19:39:59.487440: I tensorflow/stream_executor/platform/default/dlopen_checker_stub.cc:25] GPU libraries are statically linked, skip dlopen check. 2021-10-13 19:39:59.488826: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1763] Adding visible gpu devices: 0 2021-10-13 19:39:59.489594: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1640] Found device 0 with properties: name: NVIDIA GeForce RTX 3060 major: 8 minor: 6 memoryClockRate(GHz): 1.837 pciBusID: 0000:07:00.0 2021-10-13 19:39:59.490207: I tensorflow/stream_executor/platform/default/dlopen_checker_stub.cc:25] GPU libraries are statically linked, skip dlopen check. 2021-10-13 19:39:59.490904: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1763] Adding visible gpu devices: 0 2021-10-13 19:39:59.491562: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1181] Device interconnect StreamExecutor with strength 1 edge matrix: 2021-10-13 19:39:59.492349: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1187] 0 2021-10-13 19:39:59.493001: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1200] 0: N 2021-10-13 19:39:59.493720: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1326] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 10625 MB memory) -> physical GPU (device: 0, name: NVIDIA GeForce RTX 3060, pci bus id: 0000:07:00.0, compute capability: 8.6) WARNING:tensorflow:From C:\Users\Desktop\deep-yolo\tools\generate_detections.py:76: The name tf.gfile.GFile is deprecated. Please use tf.io.gfile.GFile instead.
該当のソースコード
github上の demo.py もしくは yolo.py
回答1件
あなたの回答
tips
プレビュー