Giter Club home page Giter Club logo

Comments (9)

Eavis avatar Eavis commented on August 17, 2024

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.

Eavis avatar Eavis commented on August 17, 2024

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.

Eavis avatar Eavis commented on August 17, 2024

https://stackoverflow.com/questions/51326713/where-are-caffe-libraries-for-sudo-apt-get-install-caffe-cpu-ubuntu-18

from cnn.

Eavis avatar Eavis commented on August 17, 2024

pip3 install pandas, numpy, tensorflow, scipy

from cnn.

Eavis avatar Eavis commented on August 17, 2024

sudo apt install caffe-cuda

https://github.com/dungba88/caffe-python3-install/blob/master/install-caffe.md

from cnn.

Eavis avatar Eavis commented on August 17, 2024

pip3 install https://files.pythonhosted.org/packages/8c/52/33d739bcc547f22c522def535a8da7e6e5a0f6b98594717f519b5cb1a4e1/torchvision-0.1.8-py2.py3-none-any.whl

from cnn.

Eavis avatar Eavis commented on August 17, 2024

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.

Eavis avatar Eavis commented on August 17, 2024

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.

Eavis avatar Eavis commented on August 17, 2024

sudo pip uninstall matplotlib
sudo apt-get install python-matplotlib

use python-matplotlib can solve the problom.

from cnn.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.