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

Can't compile OpenCV from source due to lack of device memory #3

Closed
brianthelion opened this issue Mar 16, 2019 · 7 comments
Closed
Labels
DevBoard Related to the dev board

Comments

@brianthelion
Copy link
Contributor

brianthelion commented Mar 16, 2019

What I ran

$ sudo apt-get install python3-dev python3-venv
$ python -m venv _venv35
$ source _venv35/bin/activate
$ pip install --upgrade pip
$ pip install conan
$ conan install opencv/4.0.1@conan/stable --build=missing

What the docs said should happen

Build completes.

What actually happened

Build fails; out of memory.

@brianthelion brianthelion changed the title Can't compile OpenCV from source due to memory errors Can't compile OpenCV from source due to lack of device memory Mar 16, 2019
@brianthelion brianthelion added the DevBoard Related to the dev board label Mar 16, 2019
@brianthelion
Copy link
Contributor Author

Added a swap file. See #5 . Promptly ran out out disk space about 2/3rds of the way through the build.

@CharlesCCC
Copy link

why would you use OpenCV when this thing is built for TensorFlow ???

@brianthelion
Copy link
Contributor Author

@CharlesCCC Not all computer vision is neural networks.

@CharlesCCC
Copy link

okay, I got that. I just wasn't sure what's the reason behind it ? Like, what would be a good reason using Computer Vision without neural networks ?(if there other limitation ?)

In addition, if you would like to use computer vision without neural networks(Not necessary Tensorflow, but let's just say it is). why would you pick a device like EdgeTPU (which is optimized for TensorFlow) vs. other SOC devices like Jettson Nano, RaspberryPi, Orange Pi etc.

@brianthelion
Copy link
Contributor Author

brianthelion commented Apr 1, 2019

@CharlesCCC All good questions. Most computer vision pipelines "in the wild" have several steps. Some of those steps make use of the CPU and some of them make use of coprocessor hardware like GPUs and TPUs. Depending on the application, the CPU steps can just as easily be the throughput bottleneck.

We're interested in providing engineers with clear decision criteria like, "When you want to do X, use device Y." Part of that process is benchmarking the hardware against common computer vision algorithms, both CPU-bound and coprocessor-bound implementations. OpenCV has the biggest selection of such implementations all in one place.

See https://app.f0cal.com/benchmarks

@maiermic
Copy link

I have not tried it myself, but this guide explains how to install OpenCV 4.0 from source on Google Coral Dev Board.

@Namburger
Copy link

Hi guys -

With Mendel Day (4.0) you can install opencv as easy as this:

sudo apt install python3-opencv

If you are using an older OS, I sugggest flashing a new image.

Cheers!

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

No branches or pull requests

4 participants