val-iisc / expresso Goto Github PK
View Code? Open in Web Editor NEWexpresso
License: Other
expresso
License: Other
The installation script is not suitable for Anaconda python.
ubgpu@ubgpu:/source_for_caffe/1/expresso$ sh run_expresso.sh/source_for_caffe/1/expresso$ echo $PYTHONPATH
/home/ubgpu/github/expresso ROOT
Traceback (most recent call last):
File "/home/ubgpu/github/expresso/src/main/main.py", line 49, in
import centralData
File "/home/ubgpu/github/expresso/src/data/centralData.py", line 14, in
import dataView
File "/home/ubgpu/github/expresso/src/data/dataView.py", line 26, in
import DataHandler
File "/home/ubgpu/github/expresso/src/data/DataHandler.py", line 2, in
import Image
ImportError: No module named Image
ubgpu@ubgpu:
/usr/local/lib/python2.7/dist-packages
ubgpu@ubgpu:/source_for_caffe/1/expresso$ sudo pip install PIL/source_for_caffe/1/expresso$ sudo pip install Pillow
[sudo] password for ubgpu:
Requirement already satisfied (use --upgrade to upgrade): PIL in /usr/local/lib/python2.7/dist-packages
ubgpu@ubgpu:
Requirement already satisfied (use --upgrade to upgrade): Pillow in /usr/local/lib/python2.7/dist-packages
ubgpu@ubgpu:/source_for_caffe/1/expresso$ sh run_expresso.sh/source_for_caffe/1/expresso$
/home/ubgpu/github/expresso ROOT
Traceback (most recent call last):
File "/home/ubgpu/github/expresso/src/main/main.py", line 49, in
import centralData
File "/home/ubgpu/github/expresso/src/data/centralData.py", line 14, in
import dataView
File "/home/ubgpu/github/expresso/src/data/dataView.py", line 26, in
import DataHandler
File "/home/ubgpu/github/expresso/src/data/DataHandler.py", line 2, in
import Image
ImportError: No module named Image
ubgpu@ubgpu:
ubgpu@ubgpu:~/source_for_caffe/1/expresso$ python2 $EXPRESSO_ROOT/src/main/main.py
Traceback (most recent call last):
File "/home/ubgpu/github/expresso/src/main/main.py", line 12, in
from PyQt4 import QtCore, QtGui
RuntimeError: the sip module implements API v11.0 but the PyQt4.QtCore module requires API v11.1
fix by:
apt-get remove python-sip python-sip-dev
ubgpu@ubgpu:/source_for_caffe/1/expresso$ sh run_expresso.sh/source_for_caffe/1/expresso$
/home/ubgpu/github/expresso ROOT
Traceback (most recent call last):
File "/home/ubgpu/github/expresso/src/main/main.py", line 49, in
import centralData
File "/home/ubgpu/github/expresso/src/data/centralData.py", line 14, in
import dataView
File "/home/ubgpu/github/expresso/src/data/dataView.py", line 26, in
import DataHandler
File "/home/ubgpu/github/expresso/src/data/DataHandler.py", line 7, in
import readdb
File "/home/ubgpu/github/expresso/src/data/readdb.py", line 9, in
import caffe
File "/home/ubgpu/source_for_caffe/1/caffe/python/caffe/init.py", line 1, in
from .pycaffe import Net, SGDSolver
File "/home/ubgpu/source_for_caffe/1/caffe/python/caffe/pycaffe.py", line 14, in
import caffe.io
File "/home/ubgpu/source_for_caffe/1/caffe/python/caffe/io.py", line 4, in
from skimage.transform import resize
File "/usr/local/lib/python2.7/dist-packages/skimage/transform/init.py", line 3, in
from .hough_transform import hough_circle, hough_line_peaks
File "/usr/local/lib/python2.7/dist-packages/skimage/transform/hough_transform.py", line 3, in
from .. import measure, morphology
File "/usr/local/lib/python2.7/dist-packages/skimage/measure/init.py", line 6, in
from ._polygon import approximate_polygon, subdivide_polygon
File "/usr/local/lib/python2.7/dist-packages/skimage/measure/_polygon.py", line 2, in
from scipy import signal
File "/usr/lib/python2.7/dist-packages/scipy/signal/init.py", line 236, in
from .cont2discrete import *
File "/usr/lib/python2.7/dist-packages/scipy/signal/cont2discrete.py", line 12, in
from .ltisys import tf2ss, ss2tf, zpk2ss, ss2zpk
File "/usr/lib/python2.7/dist-packages/scipy/signal/ltisys.py", line 14, in
from .filter_design import tf2zpk, zpk2tf, normalize, freqs
File "/usr/lib/python2.7/dist-packages/scipy/signal/filter_design.py", line 12, in
from scipy import special, optimize
File "/usr/lib/python2.7/dist-packages/scipy/optimize/init.py", line 148, in
from ._root import *
File "/usr/lib/python2.7/dist-packages/scipy/optimize/_root.py", line 20, in
from . import nonlin
File "/usr/lib/python2.7/dist-packages/scipy/optimize/nonlin.py", line 122, in
import scipy.sparse.linalg
File "/usr/lib/python2.7/dist-packages/scipy/sparse/linalg/init.py", line 108, in
from .isolve import *
File "/usr/lib/python2.7/dist-packages/scipy/sparse/linalg/isolve/init.py", line 6, in
from .iterative import *
File "/usr/lib/python2.7/dist-packages/scipy/sparse/linalg/isolve/iterative.py", line 11, in
from scipy.lib.decorator import decorator
ImportError: No module named decorator
ubgpu@ubgpu:
ubgpu@ubgpu:/source_for_caffe/1/expresso/tutorials/data$ vim preprocess_cifar_10.py/source_for_caffe/1/expresso/tutorials/data$ python preprocess_cifar_10.py
ubgpu@ubgpu:
File "preprocess_cifar_10.py", line 20
dset=f.create_dataset('data',(50000,3,32,32),dtype='float')
^
TabError: inconsistent use of tabs and spaces in indentation
ubgpu@ubgpu:/source_for_caffe/1/expresso/tutorials/data$ vim preprocess_cifar_10.py/source_for_caffe/1/expresso/tutorials/data$ python preprocess_cifar_10.py
ubgpu@ubgpu:
File "preprocess_cifar_10.py", line 24
dset[30000:40000]=np.reshape(np.array(unpickle('cifar-10-batches-py/data_batch_4')['data']),[10000,3,32,32])
^
TabError: inconsistent use of tabs and spaces in indentation
of course, I knew how to fix it; but it is a boring job
ubgpu@ubgpu:/github/expresso$ sh run_expresso.sh/github/expresso$
Traceback (most recent call last):
File "/home/ubgpu/github/expresso/src/main/main.py", line 13, in
from qtutils import inmain_later,inthread,inmain
ImportError: No module named qtutils
ubgpu@ubgpu:
ubgpu@ubgpu:/github/expresso$ sudo -H pip install qtutils/github/expresso$
Requirement already satisfied (use --upgrade to upgrade): qtutils in /usr/local/lib/python2.7/dist-packages
ubgpu@ubgpu:
Can I provide a folder with sub-folders as classes and create LMDB or LEVELDB files as DIGITS does?
Hello,
I wonder what can be done to solve the GTK dependency hell issue. 2 and 3 cannot be run at the same time in the same process. I cannot get it to work even on a clean machine (Ubuntu 14.04).
I checked by printing lines and It stops exactly at the following line (805) in main.py: app = QtGui.QApplication(sys.argv)
I can't uninstall GTK 2 because I need it, and I can't also uninstall GTK 3 because I also need it.
laurae-linux@Laurae-Linux:~/Downloads/expresso$ sh run_expresso.sh
/home/laurae-linux/Downloads/expresso ROOT
/home/laurae-linux/Downloads/caffe/python/caffe/pycaffe.py:13: RuntimeWarning: to-Python converter for std::vector<int, std::allocator<int> > already registered; second conversion method ignored.
from ._caffe import \
/usr/local/lib/python2.7/dist-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')
/home/laurae-linux/Downloads/expresso
/home/laurae-linux/Downloads/expresso
/home/laurae-linux/Downloads/expresso
**(main.py:24084): Gtk-ERROR **: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported**
Trace/breakpoint trap (core dumped)
Here is what happens when I force GTK 2 usage in main:
import gtk
laurae-linux@Laurae-Linux:~/Downloads/expresso$ sh run_expresso.sh
/home/laurae-linux/Downloads/expresso ROOT
/home/laurae-linux/Downloads/caffe/python/caffe/pycaffe.py:13: RuntimeWarning: to-Python converter for std::vector<int, std::allocator<int> > already registered; second conversion method ignored.
from ._caffe import \
/home/laurae-linux/Downloads/expresso
/home/laurae-linux/Downloads/expresso
/home/laurae-linux/Downloads/expresso
/usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion 'g_type_from_name (name) == 0' failed
import gobject._gobject
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: specified class size for type 'PyGtkGenericCellRenderer' is smaller than the parent type's 'GtkCellRenderer' class size
from gtk import _gtk
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: g_type_get_qdata: assertion 'node != NULL' failed
from gtk import _gtk
Segmentation fault (core dumped)
Forcing GTK 3 makes GTK 2 still seen:
import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk
laurae-linux@Laurae-Linux:~/Downloads/expresso$ sh run_expresso.sh
/home/laurae-linux/Downloads/expresso ROOT
/home/laurae-linux/Downloads/caffe/python/caffe/pycaffe.py:13: RuntimeWarning: to-Python converter for std::vector<int, std::allocator<int> > already registered; second conversion method ignored.
from ._caffe import \
/home/laurae-linux/Downloads/expresso
/home/laurae-linux/Downloads/expresso
/home/laurae-linux/Downloads/expresso
(main.py:30810): Gtk-ERROR **: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported
Trace/breakpoint trap (core dumped)
Obviously these ideas are not supposed to work because the Qt are not imported from main.
So let's drop import gtk
in the first line of the script. And Expresso runs.
I'm a developer of qtutils and thought I would let you know of a backward incompatible change with qtutils that affects this project.
When used with PyQt4, qtutils as of version 2.0 must be imported prior to PyQt4. This is because it enables version 2 of the PyQt API, which must be done before import PyQt4. This changes some datatypes - for example functions that in API v1 would take a QString in API v2 take a regular Python string, and Qstring doesn't exist. Apologies if I'm telling you what you already know.
This was done as part of a port of qtutils to support PyQt5 and PyQt4 at the same time. You may wish to make this change to your program if/when porting it to PyQt5, otherwise you will need to stick with qtutils < 2.0.
Depending on how complex your application is, you might find that simply reordering the imports makes your code work with qtutils > 2.0. Otherwise, I have found that the necessary changes in porting our own applications have been pretty minimal.
and when click the details button, the graph show up , but I can see the 'declined curve'
ubgpu@ubgpu:/source_for_caffe/1/expresso$ python2 $EXPRESSO_ROOT/src/main/main.py/source_for_caffe/1/expresso$
/home/ubgpu/github/expresso ROOT
Traceback (most recent call last):
File "/home/ubgpu/github/expresso/src/main/main.py", line 49, in
import centralData
File "/home/ubgpu/github/expresso/src/data/centralData.py", line 14, in
import dataView
File "/home/ubgpu/github/expresso/src/data/dataView.py", line 26, in
import DataHandler
File "/home/ubgpu/github/expresso/src/data/DataHandler.py", line 2, in
import Image
ImportError: No module named Image
ubgpu@ubgpu:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.