Classify-HandGesturePose icon indicating copy to clipboard operation
Classify-HandGesturePose copied to clipboard

ImportError: No module named nets.ColorHandPose3DNetwork

Open alxistn opened this issue 6 years ago • 11 comments

I get this error "ImportError: No module named nets.ColorHandPose3DNetwork" when I lunch the following command:

python3 evaluate_pose.py ./pose/test_data

alxistn avatar May 11 '18 20:05 alxistn

I faced the same problem.After checking the forum online,I tried this create (init.py) in nets folder,utils folder and main classify-handgesture folder

img

vivek-varma avatar Jun 14 '18 06:06 vivek-varma

I tried creating __ init __ py file inside nets folder but still I am getting the same error. I added import ColorHandPose3DNetwork inside this python file

abhigarg avatar Jun 23 '18 11:06 abhigarg

@abhigarg did u create init.py in utils and root folder? and also init.py must be empty.

vivek-varma avatar Jun 25 '18 09:06 vivek-varma

Hi @alxistn , first of all I am very sorry that I didn't reply to you in a timely manner. The reason why you are getting this error is that you have to download the original weights file from Hand3d Project. I have mentioned it in my ReadMe. Maybe I should have given the link to download it as well over there. The link to download is this: https://lmb.informatik.uni-freiburg.de/projects/hand3d/ColorHandPose3D_data_v3.zip

However the above downloaded folder will contain three folders. Among those three, paste the folder named as weights into your project folder. Hope this answer helps you! Please can you close the issue if your issue has been resolved.

Prasad9 avatar Jul 08 '18 12:07 Prasad9

Hi, when I run the run.py file, I got this error although there are pickle files in weights folder. nets/ColorHandPose3DNetwork.py", line 52, in init assert os.path.exists(file_name), "File not found." AssertionError: File not found.

JasOlean avatar Aug 03 '18 08:08 JasOlean

I downloaded the weights file and put it in the project folder but now it throws a CUBLAS error. This is the error "_device.cc:1312] Adding visible gpu devices: 0 2018-09-21 17:15:45.865543: I C:\tf_jenkins\workspace\rel-win\M\windows-gpu\PY\36\tensorflow\core\common_runtime\gpu\gpu_device.cc:993] Creating TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 4915 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1060 6GB, pci bus id: 0000:01:00.0, compute capability: 6.1) Loaded 32 variables from ./weights/handsegnet-rhd.pickle Loaded 102 variables from ./weights/posenet3d-rhd-stb-slr-finetuned.pickle 2018-09-21 17:15:51.507728: E C:\tf_jenkins\workspace\rel-win\M\windows-gpu\PY\36\tensorflow\stream_executor\cuda\cuda_blas.cc:443] failed to create cublas handle: CUBLAS_STATUS_ALLOC_FAILED" Could you please give any information about the 3DHand model's compatibility with windows ?

Baakchsu avatar Sep 21 '18 11:09 Baakchsu

I downloaded the weights file and put it in the project folder but now it throws a CUBLAS error. This is the error "_device.cc:1312] Adding visible gpu devices: 0 2018-09-21 17:15:45.865543: I C:\tf_jenkins\workspace\rel-win\M\windows-gpu\PY\36\tensorflow\core\common_runtime\gpu\gpu_device.cc:993] Creating TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 4915 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1060 6GB, pci bus id: 0000:01:00.0, compute capability: 6.1) Loaded 32 variables from ./weights/handsegnet-rhd.pickle Loaded 102 variables from ./weights/posenet3d-rhd-stb-slr-finetuned.pickle 2018-09-21 17:15:51.507728: E C:\tf_jenkins\workspace\rel-win\M\windows-gpu\PY\36\tensorflow\stream_executor\cuda\cuda_blas.cc:443] failed to create cublas handle: CUBLAS_STATUS_ALLOC_FAILED" Could you please give any information about the 3DHand model's compatibility with windows ?

Hi Baakchsu,

I faced the same problem earlier with Nvidia GTX , nut the error was CUDNN_STATUS_ALLOC_FAILED, I simply updated my Nvidia driver. It worked out. Try updating or reinstalling your graphics drivers.

shujathkhan avatar Feb 07 '19 05:02 shujathkhan

  1. create a __init__.py file in the root folder
  2. execute this command - export PYTHONPATH=$PYTHONPATH:pwd:pwd/slim

maciaspeter avatar Sep 09 '19 16:09 maciaspeter

Hi, when I run the run.py file, I got this error although there are pickle files in weights folder. nets/ColorHandPose3DNetwork.py", line 52, in init assert os.path.exists(file_name), "File not found." AssertionError: File not found.

Yup even i am facing the same issue, Did you get any solution to this.

pavankumar3175 avatar Nov 23 '19 17:11 pavankumar3175

Classify-HandGesturePose-master\nets\ColorHandPose3DNetwork.py", line 23, in from utils.general import * ModuleNotFoundError: No module named 'utils.general'

i am getting this error

akashj0070 avatar Mar 04 '20 15:03 akashj0070

Hi I am a student from Hong Kong According to what I have observed, the 'nets' folder collides with a package called "NETS" by PyPi Just simply move the ColourHandPose3DNetwork.py file out of the "nets" file and directly import it. Like: image Hope this helps you

grgvsrdvsdFva avatar Mar 29 '22 07:03 grgvsrdvsdFva