saicoco / mxnet_image_caption Goto Github PK
View Code? Open in Web Editor NEWmxnet image caption(NIC)
License: MIT License
mxnet image caption(NIC)
License: MIT License
Hi,
I'm working on a few extensions and basing my work on this mxnet image captioning implementation that you built. However, on some of my own custom data, I'm getting the following error:
mxnet.base.MXNetError: Error in operator split0: [16:42:17] src/operator/./slice_channel-inl.h:208: Check failed: dshape[real_axis] % param_.num_outputs == 0U (262 vs. 0) You are trying to split the 1-th axis of input tensor with shape [50,262,256] into num_outputs=494 evenly sized chunks, but this is not possible because 494 does not evenly divide 262
I'm using a batch size of 50, embedding dim of 256 and the word data is of size 262 it seems like from the input tensor shape.
Do you know where num_outputs=494 is set and why this error might be happening? I'm running your code right away without any modifications other than using my own data. It seems like the error is happening while doing the forward pass on the validation set.
Not sure if this is a bug.
Thanks!
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.