Comments (1)
I have no issue working on load_data.py under omniglot dataset, and was able to run SiameseNet.ipynb.
However, Its only when I switch to my own dataset, I noticed you used np.stack, which errors out when my number of images in each folder is different from the next folder. Is this a requirement for Siamese to work properly? How can I get pass this?File "load_data.py", line 64, in <module> X,y,c=loadimgs(train_folder) File "load_data.py", line 61, in loadimgs X = np.stack(X) File "C:\Users\Noel Tam\AppData\Local\conda\conda\envs\py36\lib\site-packages\numpy\core\shape_base.py", line 353, in stack raise ValueError('all input arrays must have the same shape') ValueError: all input arrays must have the same shape
load_data.py
line 48:
image = np.array(Image.fromarray(imageio.imread(image_path)).resize([300, 300]))
I used 300 pixel by pixel for my image, the default is 105 by 105 in .ipynb file, and also for a version problem in scipy, I used pillow(PIL) to read images.
from keras-oneshot.
Related Issues (17)
- LOAD ERROR HOT 1
- Can demonstrate simple example of this w CIFAR10? HOT 3
- error when running the example HOT 1
- I am very interested in Siamese network. Please help me solve my question, thank you very much.
- computation of L2_distances HOT 1
- How can I load weights?
- fix link to blogpost HOT 1
- TypeError: W_init() got an unexpected keyword argument 'dtype' HOT 5
- about the paper experience on 'mnist'
- No training HOT 1
- Key Error HOT 1
- name 'best' is not defined HOT 2
- Missing indices in make_oneshot_task HOT 1
- typo HOT 1
- I have the following error in the training data. Can you help me to solve it? Thanks! HOT 2
- When I was training data, I changed the value of evaluate_every to 100, and the original value was 500. However, there are the following errors. Can you help me solve this problem again? Thank you very much for your help. 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 keras-oneshot.