HandGestureClassify
HandGestureClassify copied to clipboard
run_demo_hand_with_tracker.py Errors
Hi, anyone know how to fix this error:
tensorflow.python.framework.errors_impl.NotFoundError: FindFirstFile failed for: /models/weights : The system cannot find the path specified. ; No such process
Thanks
-
goto: https://drive.google.com/open?id=1gOwBY5puCusYPCQaPcEUMmQtPnGHCPyl
-
download the rar file: cpm_hand_tf.rar
-
mkdir weights in folder models
-
mv rar file to folder weights
-
unrar e cpm_hand_tf.rar
Error fixed few days ago, sorry for late update and thanks @MyJoiT
You're welcome :) @LeonardChin2017
@liang0724s
Well, I received 4 emails from this issue notification.
My environment: archlinux pyenv + virtualenv python 3.6.4 pip 18.1 tensorflow 1.12.0
I advise you to change you OS. Use Unix / Linux, not windows. Then that will be ok.
@liang0724s
Well, I received 4 emails from this issue notification.
My environment: archlinux pyenv + virtualenv python 3.6.4 pip 18.1 tensorflow 1.12.0
I advise you to change you OS. Use Unix / Linux, not windows. Then that will be ok.
@MyJoiT Thank you. I will try to compile it on Ubuntu 14.4 in VMware environment.
@MyJoiT, I'm sorry to trouble you. I forget to ask you which version I should install for tensorflow: CPU or GPU? From the compile error info I done before,it reminds me have no GPU to use. Because I compile it on CPU version of tensorflow. Did you try to compile it on CPU version of tensorflow? I want to make it possible, although my computer has NVIDIA GPU. But I don't know whether it is possible and where I should modify the code. Do you think it is a good way to set up the compile environment using Anaconda? After all, Anaconda is very convenience.
@liang0724s Do not use GPU for your first try. Tensorflow-GPU require many libs. It will be more complex if you use Virtual Machine.
Hi @liang0724s, I am using Tensorflow - GPU for the first try.
Here are my gears:
- Window 10
- Cuda 9.0 and Cudnn 7
- Anaconda 5.2.0
- Pycharm (use any IDE you like)
If you are using Anaconda, you can setup the environment with the command "conda install -c aaronzs tensorflow-gpu" after you done creating and activate your virtual environment in Anaconda prompt.
Hi @liang0724s, I am using Tensorflow - GPU for the first try.
Here are my gears:
- Window 10
- Cuda 9.0 and Cudnn 7
- Anaconda 5.2.0
- Pycharm (use any IDE you like)
If you are using Anaconda, you can setup the environment with the command "conda install -c aaronzs tensorflow-gpu" after you done creating and activate your virtual environment in Anaconda prompt.
@LeonardChin2017 , Thanks.My computer GPU devices is GeForce GT 720M, although this version support CUDA, but may the hashrate is lower than the mainstream. So I can only choose to try Tensorflow - CPU first.
you are welcome :) @liang0724s
@liang0724s Do not use GPU for your first try. Tensorflow-GPU require many libs. It will be more complex if you use Virtual Machine.
Hi @MyJoiT , How to modify the code if I use CPU first?
you are welcome :) @liang0724s Hi @LeonardChin2017 , sorry,I need your help if you can. the following is the compiling info, I don‘t know where is wrong? I think it has successfully loaded the model, because the compiling info has printed this message: "Load model from [models\weights\cpm_hand\input_256_output_32\joints_21\stages_3
init_0.001_rate_0.5_step_10000\cpm_hand]"
`(D:\ProgramData\Anaconda3\envs\tensorflow_gpuenv) C:\Users\asus>python D:\Progra
mData\HandGestureClassify-master\run_demo_hand_with_tracker.py
2019-01-23 21:49:52.215849: I tensorflow/core/platform/cpu_feature_guard.cc:141]
Your CPU supports instructions that this TensorFlow binary was not compiled to
use: AVX
2019-01-23 21:49:53.282853: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1
405] Found device 0 with properties:
name: GeForce GT 720M major: 2 minor: 1 memoryClockRate(GHz): 1.25
pciBusID: 0000:01:00.0
totalMemory: 2.00GiB freeMemory: 1.94GiB
2019-01-23 21:49:53.292853: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1
455] Ignoring visible gpu device (device: 0, name: GeForce GT 720M, pci bus id:
0000:01:00.0, compute capability: 2.1) with Cuda compute capability 2.1. The min
imum required Cuda capability is 3.0.
2019-01-23 21:49:53.292853: I tensorflow/core/common_runtime/gpu/gpu_device.cc:9
65] Device interconnect StreamExecutor with strength 1 edge matrix:
2019-01-23 21:49:53.302853: I tensorflow/core/common_runtime/gpu/gpu_device.cc:9
71] 0
2019-01-23 21:49:53.302853: I tensorflow/core/common_runtime/gpu/gpu_device.cc:9
84] 0: N
Load model from [models\weights\cpm_hand\input_256_output_32\joints_21\stages_3
init_0.001_rate_0.5_step_10000\cpm_hand]
Traceback (most recent call last):
File "D:\ProgramData\HandGestureClassify-master\run_demo_hand_with_tracker.py"
, line 391, in
(D:\ProgramData\Anaconda3\envs\tensorflow_gpuenv) C:\Users\asus> `
you are welcome :) @liang0724s Hi @LeonardChin2017 , sorry,I need your help if you can. the following is the compiling info, I don‘t know where is wrong? I think it has successfully loaded the model, because the compiling info has printed this message: "Load model from [models\weights\cpm_hand\input_256_output_32\joints_21\stages_3 init_0.001_rate_0.5_step_10000\cpm_hand]"
`(D:\ProgramData\Anaconda3\envs\tensorflow_gpuenv) C:\Users\asus>python D:\Progra mData\HandGestureClassify-master\run_demo_hand_with_tracker.py 2019-01-23 21:49:52.215849: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX 2019-01-23 21:49:53.282853: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1 405] Found device 0 with properties: name: GeForce GT 720M major: 2 minor: 1 memoryClockRate(GHz): 1.25 pciBusID: 0000:01:00.0 totalMemory: 2.00GiB freeMemory: 1.94GiB 2019-01-23 21:49:53.292853: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1 455] Ignoring visible gpu device (device: 0, name: GeForce GT 720M, pci bus id: 0000:01:00.0, compute capability: 2.1) with Cuda compute capability 2.1. The min imum required Cuda capability is 3.0. 2019-01-23 21:49:53.292853: I tensorflow/core/common_runtime/gpu/gpu_device.cc:9 65] Device interconnect StreamExecutor with strength 1 edge matrix: 2019-01-23 21:49:53.302853: I tensorflow/core/common_runtime/gpu/gpu_device.cc:9 71] 0 2019-01-23 21:49:53.302853: I tensorflow/core/common_runtime/gpu/gpu_device.cc:9 84] 0: N Load model from [models\weights\cpm_hand\input_256_output_32\joints_21\stages_3 init_0.001_rate_0.5_step_10000\cpm_hand] Traceback (most recent call last): File "D:\ProgramData\HandGestureClassify-master\run_demo_hand_with_tracker.py" , line 391, in tf.app.run() File "D:\ProgramData\Anaconda3\envs\tensorflow_gpuenv\lib\site-packages\tensor flow\python\platform\app.py", line 125, in run _sys.exit(main(argv)) File "D:\ProgramData\HandGestureClassify-master\run_demo_hand_with_tracker.py" , line 60, in main saver.restore(sess, 'models/weights/cpm_hand') File "D:\ProgramData\Anaconda3\envs\tensorflow_gpuenv\lib\site-packages\tensor flow\python\training\saver.py", line 1715, in restore if not checkpoint_exists(compat.as_text(save_path)): File "D:\ProgramData\Anaconda3\envs\tensorflow_gpuenv\lib\site-packages\tensor flow\python\training\saver.py", line 2056, in checkpoint_exists if file_io.get_matching_files(pathname): File "D:\ProgramData\Anaconda3\envs\tensorflow_gpuenv\lib\site-packages\tensor flow\python\lib\io\file_io.py", line 342, in get_matching_files for single_filename in filename File "D:\ProgramData\Anaconda3\envs\tensorflow_gpuenv\lib\site-packages\tensor flow\python\framework\errors_impl.py", line 519, in exit c_api.TF_GetCode(self.status.status)) tensorflow.python.framework.errors_impl.NotFoundError: FindFirstFile failed for: models/weights : ϵͳ\udcd5Ҳ\udcbb\udcb5\udcbdָ\udcb6\udca8\udcb5\udcc4·\udcbe\u dcb6\udca1\udca3 ; No such process
(D:\ProgramData\Anaconda3\envs\tensorflow_gpuenv) C:\Users\asus> `
@LeonardChin2017 Thanks,Leonard. I have compiled it successfully. But the average FPS=0.43. Also, the GPU compute capability is 2.1. It's too low. I found an excuse to change a new notebook.
Does anyone has the error below.I have already unrar , and mkdir weights ValueError: The passed save_path is not a valid checkpoint: models/weights/cpm_hand
Does anyone has the error below.I have already unrar , and mkdir weights ValueError: The passed save_path is not a valid checkpoint: models/weights/cpm_hand
the right path showld be this maybe,i run successfully,and fps is 10