tencent-ailab / hifi3dface

Code and data for our paper "High-Fidelity 3D Digital Human Creation from RGB-D Selfies".
Other
756 stars 153 forks source link

Negative dimensions are not allowed #36

Open chandlerbing65nm opened 2 years ago

chandlerbing65nm commented 2 years ago

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 commented 1 year ago

same error, have you solved it?

ihongxx commented 1 year ago

same error, have you solved it?

ZhenyanSun commented 1 year ago

same error, have you solved it?

have you solved it?

alexwangcan commented 1 year ago

same error, have you solved it?

SlimeVRX commented 1 year ago

same error, have you solved it?