简体   繁体   English

caffe可以一次接受一批具有不同分辨率的输入吗? 如果可以,怎么办?

[英]Can caffe take in a batch of inputs with different resolutions at once? If so how?

I am thinking of building a larger network with more input layers which would consist of all the respective reshaped input resolutions from the batch. 我正在考虑建立一个具有更多输入层的更大的网络,其中将包含该批次中所有经过重新调整的输入分辨率。 Please let me know if this is possible and if it is what would be the most efficient way? 请让我知道这是否可行,这是最有效的方法吗?

For example: 3x160x160 + 3x48x48 + 3x128x128 | 例如:3x160x160 + 3x48x48 + 3x128x128 | | | | | Rest of the network | 网络其余部分| | | | | Outputs 产出

Caffe processes Blobs : these are N -dimensional arrays, therefore the dimensions of all elements in a single batch must be of the same shape (you can reshape between batches). Caffe进程Blobs :这些是N维数组,因此,单个批次中所有元素的尺寸必须具有相同的形状(您可以在批次之间reshape形状)。
However, if you are going to use the same multiple shapes for all inputs in the batch, ie, you'll have inputs like N x3x160x160 + N x3x48x48 + N x3x128x128, then you can create three input layer (one for each shape) and feed the net with three types of blobs at each iteration. 但是,如果您要对批处理中的所有输入使用相同的多个形状,即您将拥有N x3x160x160 + N x3x48x48 + N x3x128x128之类的输入,则可以创建三个输入层(每个形状一个)在每次迭代中用三种类型的Blob填充网络。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何适应不同分辨率的图像? - How can I fit images with different resolutions? 如何在 python 中使用不同规则从同一行获取多个输入 - how to take multiple inputs in python from same line with different rules 如何在python 2的同一行上获取不同数据类型的多个输入? 不能使用 map() 函数,因为输入有混合数据 - How to take multiple inputs of different data types on same line in python 2? can't use map() function as input has mixed data 如何从用户那里获得多个输入? - How can I take multiple inputs from the user? 如何创建批处理文件,使我的python脚本可以进行2次输入 - How do I create a batch file that will allow my python script to take 2 inputs 如何做到这一点,以便我的 discord 机器人只接受启动命令的人的输入 - How do I make it so my discord bot only take inputs from the person that started the command 如何在不同的视图和模板之间拆分 model class 的字段以获取不同 forms 中的输入? - How to split fields of model class between different views and templates to take inputs in different forms? geeksforgeeks练习:如何接受输入? - geeksforgeeks practice: how to take inputs? 如何配置sqlite列,使其可以采用任何类型的值 - How to configure sqlite column so that it can take any kind of values 如何处理 keras 中的批量输入? - How to treat batch of inputs in keras?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM