Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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