-
Notifications
You must be signed in to change notification settings - Fork 18.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
upgrade the K : number of channel #1494
Comments
Try to take a look here #1486 |
Caffe is general w.r.t. to the number of input channels K. In Caffe there's no need to explicitly define the input channel, height, or width dimensionality in the model as it is loaded from the data. Prepare the data in an LMDB or your format of choice with each feature channel included:
There's no need for N-D blobs to simply increase the channel dimension K. If you had volumetric data on the other hand (a whole new axis of the data, not more dimensions of a given axis) then N-D blobs would be needed. |
I have a question for making sure of upgrading K channel number. I could create my dataset with K channel 4 by your script or convert_imageset and I changed K channel number on deploy.prototxt but I got a trouble when I classified an image with caffe.Classifier. It caused an error: "blob.cpp:455] Check failed: ShapeEquals(proto) shape mismatch (reshape not set)". This error was understandable because I increased the number of K channel from 3 to 4 in deploy.prototxt while I was training. However, I changed K channel back to 4 from 3 in deploy.prototxt and classify an image again. The error problem was solved and I could classify with my trained model. Is this because caffe does not have to explicitly defined K channel you mentioned here? |
Hello,
In my research I wan't to upgrade the number of channel K, for exemple to use 4 or 5 channel adding to RGB,
My question is where can I found the file that define or allow me to define a bigger number of channels?
Thx :)
The text was updated successfully, but these errors were encountered: