Comments (3)
Copied from documentation of Numpy:
encoding : str, optional
What encoding to use when reading Python 2 strings. Only useful when loading Python 2 generated pickled files on Python 3, which includes npy/npz files containing object arrays. Values other than ‘latin1’, ‘ASCII’, and ‘bytes’ are not allowed, as they can corrupt numerical data. Default: ‘ASCII’
So I will suggest you remove the encoding
parameter for Python 3.
from tensorflow-vgg.
Thank you. I tried, but it comes out the following error:
File "<ipython-input-1-686846baf3f3>", line 1, in <module>
runfile('/home/kang/Documents/work_code_PC1/tensorflow-vgg/test_vgg16.py', wdir='/home/kang/Documents/work_code_PC1/tensorflow-vgg')
File "/usr/lib/python3/dist-packages/spyderlib/widgets/externalshell/sitecustomize.py", line 685, in runfile
execfile(filename, namespace)
File "/usr/lib/python3/dist-packages/spyderlib/widgets/externalshell/sitecustomize.py", line 85, in execfile
exec(compile(open(filename, 'rb').read(), filename, 'exec'), namespace)
File "/home/kang/Documents/work_code_PC1/tensorflow-vgg/test_vgg16.py", line 20, in <module>
vgg = vgg16.Vgg16()
File "/home/kang/Documents/work_code_PC1/tensorflow-vgg/vgg16.py", line 20, in __init__
self.data_dict = np.load(vgg16_npy_path).item()
File "/usr/lib/python3/dist-packages/numpy/lib/npyio.py", line 394, in load
return format.read_array(fid)
File "/usr/lib/python3/dist-packages/numpy/lib/format.py", line 446, in read_array
array = pickle.load(fp)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xed in position 0: ordinal not in range(128)
from tensorflow-vgg.
This issue should be fixed in the recent update on the python3 compatibility.
from tensorflow-vgg.
Related Issues (20)
- The vgg16.npy can't be downed. HOT 4
- Relu layer
- _pickle.UnpicklingError HOT 1
- About NPY file
- why there is no activation function behind the convolution layer? HOT 1
- what about more channels
- Train on my own data... HOT 6
- About accuracy of the pretrained vgg.npy
- the padding in maxpooling of the vgg16.py HOT 1
- Do you know how to implement the "use this to build the VGG object", Please?
- about fc_layer
- vgg19_trainable without trainer?
- the issues about split
- Different value from this version and keras HOT 1
- colaboratory
- Tensorflow version problem HOT 2
- npy file for pytorch?
- Google Colab
- Spelling error.
- When I first use this net,where should I spill the code in the "readme-usage" ? HOT 1
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 tensorflow-vgg.