camenduru / PanoHead-colab

The Unlicense
116 stars 20 forks source link

Hello, #6

Open MustafaHilmiYAVUZHAN opened 12 months ago

MustafaHilmiYAVUZHAN commented 12 months ago

I made a small contribution to your project, and I have some feedback. While reviewing the project, I encountered a few issues:

/usr/local/lib/python3.10/dist-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /content/3DDFA_V2/FaceBoxes/utils/nms/cpu_nms.pyx tree = Parsing.p_module(s, pxd, full_module_name) nms/cpu_nms.c: In function ‘pyx_pf_3nms_7cpu_nms_2cpu_soft_nms’: nms/cpu_nms.c:3556:33: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 3556 | pyx_t_8 = ((pyx_v_pos < pyx_v_N) != 0); | ^ nms/cpu_nms.c:4067:33: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 4067 | pyx_t_8 = ((pyx_v_pos < __pyx_v_N) != 0); | ^ /usr/local/lib/python3.10/dist-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /content/3DDFA_V2/Sim3DR/lib/rasterize.pyx tree = Parsing.p_module(s, pxd, full_module_name) In file included from /usr/local/lib/python3.10/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1960, from /usr/local/lib/python3.10/dist-packages/numpy/core/include/numpy/ndarrayobject.h:12, from /usr/local/lib/python3.10/dist-packages/numpy/core/include/numpy/arrayobject.h:5, from lib/rasterize.cpp:766: /usr/local/lib/python3.10/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] 17 | #warning "Using deprecated NumPy API, disable it with " \ | ^~~

Download Results: gid |stat|avg speed |path/URI ======+====+===========+======================================================= a5a656|OK | 384MiB/s|/content/3DDFA_V2/shape_predictor_68_face_landmarks.dat

Status Legend: (OK):download completed. [2] 13 sn. %cd /content/3DDFA_V2 !rm -rf /content/stage/ /content/3DDFA_V2/crop_samples/img/ /content/3DDFA_V2/test/original/ /content/output/ !cp /content/in/* /content/3DDFA_V2/test/original

!python dlib_kps.py !python recrop_images.py -i data.pkl -j dataset.json

!cp -rf /content/3DDFA_V2/crop_samples/img/* /content/stage

%cd /content/PanoHead

/content/3DDFA_V2 0% 0/1 [00:01<?, ?it/s] Traceback (most recent call last): File "/content/3DDFA_V2/recrop_images.py", line 322, in main(args) File "/content/3DDFA_V2/recrop_images.py", line 291, in main cv2.imwrite(os.path.join(args.out_dir, os.path.basename(img_path).replace(".png",".jpg")), cropped_img) cv2.error: OpenCV(4.7.0) /io/opencv/modules/imgcodecs/src/loadsave.cpp:783: error: (-215:Assertion failed) !_img.empty() in function 'imwrite'

cp: cannot stat '/content/3DDFA_V2/crop_samples/img/*': No such file or directory