Comments (9)
http://caffe.berkeleyvision.org/install_apt.html
sudo apt install caffe-cpu
sudo apt build-dep caffe-cpu # dependencies for CPU-only version
It requires a deb-src line in your sources.list. Continue with compilation.
from cnn.
install opencv3
Guide is taken from http://www.pyimagesearch.com/2015/07/20/install-opencv-3-0-and-python-3-4-on-ubuntu/
Checkout and compile
git clone https://github.com/opencv/opencv
cd opencv
mkdir build
cd build
cmake ..
make
sudo make install
from cnn.
from cnn.
pip3 install pandas, numpy, tensorflow, scipy
from cnn.
sudo apt install caffe-cuda
https://github.com/dungba88/caffe-python3-install/blob/master/install-caffe.md
from cnn.
from cnn.
Python 3.6.6 (default, Sep 12 2018, 18:26:19)
[GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux
Type "help", "copyright", "credits" or "license" for more information.
import caffe
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
(.:21659): Gdk-CRITICAL **: 14:26:38.561: gdk_cursor_new_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(.:21659): Gdk-CRITICAL **: 14:26:38.562: gdk_cursor_new_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
import numpy as np
import pandas
Traceback (most recent call last):
File "", line 1, in
File "/home/ubuntu/.local/lib/python3.6/site-packages/pandas/init.py", line 57, in
from pandas.io.api import *
File "/home/ubuntu/.local/lib/python3.6/site-packages/pandas/io/api.py", line 19, in
from pandas.io.packers import read_msgpack, to_msgpack
File "/home/ubuntu/.local/lib/python3.6/site-packages/pandas/io/packers.py", line 69, in
from pandas.util._move import (
ValueError: module functions cannot set METH_CLASS or METH_STATIC
from cnn.
For me it seems to be matplotlib that causes this. If you want to run totally headless at the top of your script you can also try:
import matplotlib
matplotlib.use('Agg')
Which will tell matplotlib not to try to load up GTK.
from cnn.
sudo pip uninstall matplotlib
sudo apt-get install python-matplotlib
use python-matplotlib can solve the problom.
from cnn.
Related Issues (9)
- Initializations HOT 5
- sscnet HOT 11
- render_blender HOT 3
- python version HOT 7
- AmazonS3 boto3 HOT 4
- Amazon Sagemaker HOT 1
- PoseCNN HOT 1
- gazebo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cnn.