Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Negative dimensions are not allowed #36

Open
chandlerbing65nm opened this issue Jun 2, 2022 · 5 comments
Open

Negative dimensions are not allowed #36

chandlerbing65nm opened this issue Jun 2, 2022 · 5 comments

Comments

@chandlerbing65nm
Copy link

chandlerbing65nm commented Jun 2, 2022

I'm getting this message when running bash run_opt_rgb.sh. I followed everything in the documentation.

(3dvision) root@C.4630448:~/hifi3dface$ bash run_opt_rgb.shprepare datas
start MTCNNMTCNN detecthello
2022-06-02 15:21:15.284411: I tensorflow/core/platform/cpu_feature_guard.cc:140] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA2022-06-02 15:21:15.590338: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1356] Found device 0 with properties:name: NVIDIA RTX A5000 major: 8 minor: 6 memoryClockRate(GHz): 1.695pciBusID: 0000:44:00.0
totalMemory: 23.69GiB freeMemory: 23.48GiB
2022-06-02 15:21:15.590385: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1435] Adding visible gpu devices: 0
2022-06-02 15:23:30.311559: I tensorflow/core/common_runtime/gpu/gpu_device.cc:923] Device interconnect StreamExecutor with strength 1 edge matrix:2022-06-02 15:23:30.311599: I tensorflow/core/common_runtime/gpu/gpu_device.cc:929]      0
2022-06-02 15:23:30.311608: I tensorflow/core/common_runtime/gpu/gpu_device.cc:942] 0:   N
2022-06-02 15:23:30.368724: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1053] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 22777 MB memory) -> physical GPU (device: 0, name: NVIDIA RTX A5000, pci bus id: 0000:44:00.0, compute capability: 8.6)=========================
Traceback (most recent call last):
  File "run_data_preparation.py", line 342, in <module>
    app.run(main)  File "/root/miniconda3/envs/3dvision/lib/python3.6/site-packages/absl/app.py", line 312, in run
    _run_main(main, args)
  File "/root/miniconda3/envs/3dvision/lib/python3.6/site-packages/absl/app.py", line 258, in _run_main
    sys.exit(main(argv))
  File "run_data_preparation.py", line 321, in main
    prepare_test_data_RGB(FLAGS.img_dir, FLAGS.out_dir)
  File "run_data_preparation.py", line 204, in prepare_test_data_RGB
    names_list = detect_face_with_mtcnn.detect_with_MTCNN(img_dir, mtcnn_dir, pb_path)
  File "/root/hifi3dface/data_prepare/detect_face_with_mtcnn.py", line 389, in detect_with_MTCNN
    img, minsize, pnet, rnet, onet, threshold, factor
  File "/root/hifi3dface/data_prepare/detect_face_with_mtcnn.py", line 123, in detect_face
    tmp = np.zeros((int(tmph[k]), int(tmpw[k]), 3))
ValueError: negative dimensions are not allowed
data prepare failed
@YiChenCityU
Copy link

same error, have you solved it?

1 similar comment
@ihongxx
Copy link

ihongxx commented Jan 18, 2023

same error, have you solved it?

@ZhenyanSun
Copy link

same error, have you solved it?

have you solved it?

@alexwangcan
Copy link

same error, have you solved it?

1 similar comment
@SlimeVRX
Copy link

SlimeVRX commented Jun 2, 2023

same error, have you solved it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants