Closed dianqiliuze closed 4 years ago
我找到问题所在了,很抱歉耽误您的时间
”Actually, there is a bug in the main.cpp of line 121. The getline() function will add the character '\r' to the end of the string in Linux. Change the code to: string input = line; input = input.substr(0, input.length()-1); and watch out not to newline in the last line of imagelist.txt. “
上述的公式中,第二行是不是需要修改为input = input.substr(0, input.length())?;
您好,非常感激您能够上传源码,我在运行您上传的代码时,重新修改了您提供的imagelist.txt文件的内容,更改为/media/oy/0008D4E/MILD-master/data/city/0001.jpg,即city数据集中的图片的绝对路径,但是执行了./mild imagelist.txt settings.yaml指令后,输出的文件都为空,请问您知道这是怎么一回事吗?若能解惑,不胜感激!如果方便的话,这是我的邮箱:3011296707@qq.com