In [4]:
import os, sys; sys.path.insert(1,os.path.join('utils'))
from utils2 import *
from vgg16_avg import VGG16_Avg
Using TensorFlow backend.
/home/wnixalo/miniconda3/envs/FAI3/lib/python3.6/site-packages/sklearn/cross_validation.py:44: DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. Also note that the interface of the new CV iterators are different from that of this module. This module will be removed in 0.20.
"This module will be removed in 0.20.", DeprecationWarning)
In [5]:
model = VGG16_Avg()
Downloading data from https://github.com/fchollet/deep-learning-models/releases/download/v0.1/vgg16_weights_tf_dim_ordering_tf_kernels.h5
---------------------------------------------------------------------------
KeyboardInterrupt Traceback (most recent call last)
<ipython-input-5-3ab19c6fb292> in <module>()
----> 1 model = VGG16_Avg()
/home/wnixalo/Kaukasos/FAI02/utils/vgg16_avg.py in VGG16_Avg(include_top, weights, input_tensor, input_shape, classes)
123 weights_path = get_file('vgg16_weights_tf_dim_ordering_tf_kernels.h5',
124 TF_WEIGHTS_PATH,
--> 125 cache_subdir='models')
126 else:
127 weights_path = get_file('vgg16_weights_tf_dim_ordering_tf_kernels_notop.h5',
/home/wnixalo/miniconda3/envs/FAI3/lib/python3.6/site-packages/keras/utils/data_utils.py in get_file(fname, origin, untar, md5_hash, cache_subdir)
111 try:
112 urlretrieve(origin, fpath,
--> 113 functools.partial(dl_progress, progbar=progbar))
114 except URLError as e:
115 raise Exception(error_msg.format(origin, e.errno, e.reason))
/home/wnixalo/miniconda3/envs/FAI3/lib/python3.6/urllib/request.py in urlretrieve(url, filename, reporthook, data)
275
276 while True:
--> 277 block = fp.read(bs)
278 if not block:
279 break
/home/wnixalo/miniconda3/envs/FAI3/lib/python3.6/http/client.py in read(self, amt)
447 # Amount is given, implement using readinto
448 b = bytearray(amt)
--> 449 n = self.readinto(b)
450 return memoryview(b)[:n].tobytes()
451 else:
/home/wnixalo/miniconda3/envs/FAI3/lib/python3.6/http/client.py in readinto(self, b)
491 # connection, and the user is reading more bytes than will be provided
492 # (for example, reading in 1k chunks)
--> 493 n = self.fp.readinto(b)
494 if not n and b:
495 # Ideally, we would raise IncompleteRead if the content-length
/home/wnixalo/miniconda3/envs/FAI3/lib/python3.6/socket.py in readinto(self, b)
584 while True:
585 try:
--> 586 return self._sock.recv_into(b)
587 except timeout:
588 self._timeout_occurred = True
/home/wnixalo/miniconda3/envs/FAI3/lib/python3.6/ssl.py in recv_into(self, buffer, nbytes, flags)
1000 "non-zero flags not allowed in calls to recv_into() on %s" %
1001 self.__class__)
-> 1002 return self.read(nbytes, buffer)
1003 else:
1004 return socket.recv_into(self, buffer, nbytes, flags)
/home/wnixalo/miniconda3/envs/FAI3/lib/python3.6/ssl.py in read(self, len, buffer)
863 raise ValueError("Read on closed or unwrapped SSL socket.")
864 try:
--> 865 return self._sslobj.read(len, buffer)
866 except SSLError as x:
867 if x.args[0] == SSL_ERROR_EOF and self.suppress_ragged_eofs:
/home/wnixalo/miniconda3/envs/FAI3/lib/python3.6/ssl.py in read(self, len, buffer)
623 """
624 if buffer is not None:
--> 625 v = self._sslobj.read(len, buffer)
626 else:
627 v = self._sslobj.read(len)
KeyboardInterrupt:
In [ ]:
Content source: WNoxchi/Kaukasos
Similar notebooks: