-
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
How do I specify the number of top blobs allocated for a DataLayer? #1057
Comments
Why change the data layer? Define three data layers and configure the For convolution multiple inputs and outputs are supported in the special For the details of weight sharing see #546. On Tue, Sep 9, 2014 at 4:18 PM, BlGene [email protected] wrote:
|
@shelhamer I am working with densely labeled images and I am sampling small patches out of these (see here). This is done using a DataSampler class that frequency balances categories and specifies a random patch from the training set. So I am modifying the data layer anyway. Using this design means that the position of the patch that I sample is chosen in the data layer, which means that I can't have three (independent) data layers. I'm not sure if this is the best design. Alternativley I could move the patch location sampler out of the data layer but I am using the DataTransformer class as a sensible template to design the DataSampler. |
So from what I've looked at I would need to specify in the network description how many output blobs I want to have, then I would need to use this to add these blobs to the network, by modifying Net::AppendTop. Since I load/transform the data in a prefetch thread (DataLayer::InternalThreadEntry) which writes to prefetch_data_ I need to modify this variable to hold more Blobs too. Should I go ahead with this, or is there a better way to achieve what I want? |
Seems reasonable given your needs. Please discuss further if you like on the caffe-users mailing list. |
Ty, should have closed issue myself. |
I am trying to implement a net which as the following structure:
I am working in DataLayer::InternalThreadEntry where a Datum is loaded from a DB, then instead of just getting one Datum from DataTransformer::Transform I transfrom the image in three different ways(a,b,c), my question is:
* Apparently the label is also provided as a Blob to top, so this is included in the number of top Blobs.
The text was updated successfully, but these errors were encountered: