In [1]:
import matplotlib
matplotlib.use('agg')
import cPickle as pickle
import os; import sys; sys.path.append('../../')
import gp
import gp.nets as nets


INFO (theano.gof.compilelock): Waiting for existing lock by process '27874' (I am process '28690')
INFO (theano.gof.compilelock): To manually release the lock, delete /home/d/.theano/compiledir_Linux-4.4--generic-x86_64-with-Ubuntu-16.04-xenial-x86_64-2.7.12-64/lock_dir
Using gpu device 0: GeForce GTX TITAN (CNMeM is disabled, CuDNN 5005)
/home/d/nolearnNEW/local/lib/python2.7/site-packages/theano/sandbox/cuda/__init__.py:600: UserWarning: Your CuDNN version is more recent then Theano. If you see problems, try updating Theano or downgrading CuDNN to version 4.
  warnings.warn(warn)
/home/d/nolearnNEW/local/lib/python2.7/site-packages/theano/tensor/signal/downsample.py:6: UserWarning: downsample module has been moved to the theano.tensor.signal.pool module.
  "downsample module has been moved to the theano.tensor.signal.pool module.")

In [2]:
# PATCH_PATH = ('ipmlb')

X_train, y_train, X_test, y_test = gp.Patch.load_small()

print 'Training patches', y_train.shape[0]
print 'Test patches', y_test.shape[0]


---------------------------------------------------------------------------
IOError                                   Traceback (most recent call last)
<ipython-input-2-9d7d20a24bc9> in <module>()
      2 # PATCH_PATH = ('ipmlb')
      3 
----> 4 X_train, y_train, X_test, y_test = gp.Patch.load_small()
      5 
      6 print 'Training patches', y_train.shape[0]

/home/d/Projects/gp/gp/patch.pyc in load_small(patch_size, verbose)
    716     t0 = time.time()
    717 
--> 718     training = np.load(PATCH_PATH+'train.npz', mmap_mode='r')
    719     training_targets = np.load(PATCH_PATH+'train_targets.npz')
    720 

/home/d/nolearnNEW/local/lib/python2.7/site-packages/numpy/lib/npyio.pyc in load(file, mmap_mode, allow_pickle, fix_imports, encoding)
    360     own_fid = False
    361     if isinstance(file, basestring):
--> 362         fid = open(file, "rb")
    363         own_fid = True
    364     else:

IOError: [Errno 2] No such file or directory: '/n/regal/pfister_lab/haehn/FINAL/IPMLB/train.npz'

In [ ]: