Prasad9 / Classify-HandGesturePose

Network to classify hand gesture poses.
GNU General Public License v2.0
129 stars 30 forks source link

ImportError: No module named nets.ColorHandPose3DNetwork #1

Open alxistn opened 6 years ago

alxistn commented 6 years ago

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

python3 evaluate_pose.py ./pose/test_data
vivek-varma commented 6 years ago

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

abhigarg commented 6 years ago

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

vivek-varma commented 6 years ago

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

Prasad9 commented 6 years ago

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.

JasOlean commented 6 years ago

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.

Baakchsu commented 6 years ago

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 ?

shujathkhan commented 5 years ago

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.

maciaspeter commented 5 years ago
  1. create a __init__.py file in the root folder
  2. execute this command - export PYTHONPATH=$PYTHONPATH:pwd:pwd/slim
pavankumar3175 commented 4 years ago

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.

akashj0070 commented 4 years ago

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

i am getting this error

grgvsrdvsdFva commented 2 years ago

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