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

Step: Crop and resize video frames too slow #7

Closed
House-Leo opened this issue Nov 19, 2020 · 6 comments
Closed

Step: Crop and resize video frames too slow #7

House-Leo opened this issue Nov 19, 2020 · 6 comments

Comments

@House-Leo
Copy link

crop and resize video frames

python utils/crop_portrait.py \

--data_dir $video_dir \

--crop_level 2.0 \

--vertical_adjust 0.2

image

Do you have the same problem? Or is it have to be slow?

@xinwen-cs
Copy link
Owner

It is a little bit slow on my machine, but not that much like yours. Check main memory usage first.

@House-Leo
Copy link
Author

It is a little bit slow on my machine, but not that much like yours. Check main memory usage first.

It seems that will cost about 20 hours to preprocess.

@House-Leo
Copy link
Author

image

It is a little bit slow on my machine, but not that much like yours. Check main memory usage first.

@House-Leo
Copy link
Author

I have solved it . Don't use pip install dlib. Need to install dlib from source code.

@wayneszq
Copy link

wayneszq commented Dec 20, 2020

I have solved it . Don't use pip install dlib. Need to install dlib from source code.

Hi any suggestion for install dilib? I installed from souce code like the following:
git clone https://github.com/davisking/dlib.git cd dlib mkdir build; cd build; cmake .. -DDLIB_USE_CUDA=0 -DUSE_AVX_INSTRUCTIONS=1; cmake --build . cd .. python setup.py install

Still got it very slow. Any suggestion? thanks.

dlib: version: 19.21.99
face_recognition version 1.3.0

@House-Leo
Copy link
Author

I have solved it . Don't use pip install dlib. Need to install dlib from source code.

Hi any suggestion for install dilib? I installed from souce code like the following:
git clone https://github.com/davisking/dlib.git cd dlib mkdir build; cd build; cmake .. -DDLIB_USE_CUDA=0 -DUSE_AVX_INSTRUCTIONS=1; cmake --build . cd .. python setup.py install

Still got it very slow. Any suggestion? thanks.

dlib: version: 19.21.99
face_recognition version 1.3.0

Please follow https://gist.github.com/ageitgey/629d75c1baac34dfa5ca2a1928a7aeaf
git clone https://github.com/davisking/dlib.git
cd .. python3 setup.py install
And test it after installing. Follow python import dlib dlib.DLIB_USE_CUDA , and the output you get is True.

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

3 participants