segnet caffe upsample top index 0 out of range - check scale settings match input pooling layer's downsample setup

I0305 15:58:08.603567 14672 solver.cpp:250] Solving VGG_ILSVRC_16_layer
I0305 15:58:08.603581 14672 solver.cpp:251] Learning Rate Policy: step
F0305 16:00:32.416029 14672 upsample_layer.cpp:127] upsample top index 0 out of range - check scale settings match input pooling layer‘s downsample setup
*** Check failure stack trace: ***
@ 0x7f372f8aa5cd google::LogMessage::Fail()
@ 0x7f372f8ac433 google::LogMessage::SendToLog()
@ 0x7f372f8aa15b google::LogMessage::Flush()
@ 0x7f372f8ace1e google::LogMessageFatal::~LogMessageFatal()
@ 0x7f373010616f caffe::UpsampleLayer<>::Backward_cpu()
@ 0x7f37300c8042 caffe::Net<>::BackwardFromTo()
@ 0x7f37300c8241 caffe::Net<>::Backward()
@ 0x7f37301efc7d caffe::Solver<>::Step()
@ 0x7f37301f0754 caffe::Solver<>::Solve()
@ 0x408019 train()
@ 0x405ce8 main
@ 0x7f372ef5e830 __libc_start_main
@ 0x406289 _start
@ (nil) (unknown)
Aborted (core dumped)

这事cpu版本的错误,我看到的解决方法如下:

由于这是作者自己改的caffe,而且版本比较老,所以可以做如下改动:

将upsample_layer.cpp中的第127,128行直接注释掉:

然后

make clean
make all

也就是重新编译caffe,因为这个cpp是caffe代码,所以必须重新编译caffe才可以。

segnet caffe upsample top index 0 out of range - check scale settings match input pooling layer's downsample setup

原文地址:https://www.cnblogs.com/SweetBeens/p/8653119.html

时间: 2024-10-31 16:51:11

segnet caffe upsample top index 0 out of range - check scale settings match input pooling layer's downsample setup的相关文章

caffe出错:Unknown bottom blob &#39;data&#39; (layer &#39;conv1&#39;, bottom index 0)

原文https://blog.csdn.net/u011070171/article/details/75425740 caffe训练出现如下错误: Unknown bottom blob 'data' (layer 'conv1', bottom index 0) 问题,缺少对应的data. 解决:可能是在训练的时候加入测试迭代数,可是网络文件里并没有测试网络. 检查solver.prototxt里边是否定义了test相关内容,而train.prototxt里边并没有test相关结构. caf

java.util.regex.PatternSyntaxException: Dangling meta character &#39;*&#39; near index 0

使用repalceAll 方法出现java.util.regex.PatternSyntaxException: Dangling meta character '*' near index 0异常 代码如下: 1 @Test 2 public void testReplaceAll(){ 3 String sql = "select * from per_handle where id not in('3ce7405509414105a65e7456987e7393')"; 4 St

Exception in thread &quot;main&quot; java.util.regex.PatternSyntaxException: Unclosed character class near index 0 [ ^

Exception in thread "main" java.util.regex.PatternSyntaxException: Unclosed character class near index 0 [ ^ 出现此错误应该是字符转义出现问题: System.out.println(str.replaceAll("[", "22")); 解决方案:在[之前加上\\ System.out.println(str.replaceAll(&qu

报错: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

描述:使用Hibernate登陆验证时故意输入没有的用户名,所产生的错误. 错误代码: ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 /*      * 根据客户的用户名查找客户信息      */     @Override     public User getUserByUserName(String userName) {         String hql="from User where userName=?";         Session s

vs2012打包部署时“cannot extract icon with index 0 from file xxx.exe”的解决方案

最近使用vs2012做opencv项目的时候,打包时老是碰到cannot extract icon with index 0 from file xxx.exe这样的问题,弄了半天,才搞定. 为了让大家少走弯路,特分享一下解决办法: 1.先将大小为(16*16或32*32或48*48)的.ico格式Icon图片拷贝到项目目录下; 2.然后在vs中的资源管理器中刷新并将该Icon图片添加进项目中(右键->Include in project); 3.在项目上右键->添加->已有项,出现新窗

Terminating app due to uncaught exception &#39;NSRangeException&#39;, reason: -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array&#39;

首页 > iOS问答 > 详情 *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array' *** First throw call stack: (0x1f9b012 0x1a90e7e 0x1f3d0b4 0x6baaf 0x1aa46b0 0x1c1bb

SQLite: Cannot bind argument at index 1 because the index is out of range. The statement has 0 param

SQLite: Cannot bind argument at index 1 because the index is out of range. The statement has 0 parameters SQLite出现了这样的错误 12-25 22:52:50.252: E/AndroidRuntime(813): Caused by: java.lang.IllegalArgumentException: Cannot bind argument at index 1 because

listview 遇到问题java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0

开发的时候 遇到 java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0 这个异常有时候会有,有时候正常 不太好捕捉 猜测 已经把数据给了list,然后让主线程去显示:接着后台继续获取数据.那也许有可能主线程还是没刷新完,后台又把新数据给过来了 所以 猜测 是刷新头部出现的问题 也就是 news.clear(); news.addAll(0, refreshNewData); newsAdapter.notifyDataSe

HTTP错误:java.lang.IllegalArgumentException: Illegal character in scheme at index 0: ?http://xxxxxx

读取T卡文件里的域名,HTTP请求出现如下错误 java.lang.IllegalArgumentException: Illegal character in scheme at index 0: http://xxxxxxxxxxx at java.net.URI.create(URI.java:727) at org.apache.http.client.methods.HttpPost.<init>(HttpPost.java:84) ...... 出现该错误时,读取域名的代码如下 p