Comments (4)
你按下面的方式调试一下:
- 首先找到那个第1982的图片,确认一下图片有没有什么异常;
- 在图库所在目录去掉该张图片,然后看看图库中的图是否全部跑过去;
- 或者按下面方式定位到1982张图片那里:
%parfor i = 1:numImg
for i = 1982
oriImg = imread(imgNamList{i, 1});
if size(oriImg, 3) == 3
im_ = single(oriImg) ; % note: 255 range
im_ = imresize(im_, net.meta.normalization.imageSize(1:2)) ;
im_ = im_ - net.meta.normalization.averageImage ;
res = vl_simplenn(net, im_) ;
% viesion: matconvnet-1.0-beta17
featVec = res(20).x;
featVec = featVec(:);
feat = [feat; featVec'];
fprintf('extract %d image\n\n', i);
else
im_ = single(repmat(oriImg,[1 1 3])) ; % note: 255 range
im_ = imresize(im_, net.meta.normalization.imageSize(1:2)) ;
im_ = im_ - net.meta.normalization.averageImage ;
res = vl_simplenn(net, im_) ;
% viesion: matconvnet-1.0-beta17
featVec = res(20).x;
featVec = featVec(:);
feat = [feat; featVec'];
fprintf('extract %d image\n\n', i);
end
end
注意上面把i直接设为了从1982图片开始了,然后断点一步一步调试。
另外我在代码里已经加了对单通道图片的处理的情况的,即:
im_ = single(repmat(oriImg,[1 1 3])) ;
按上面方式调试后如果还有问题可以把那张出现问题的图片发给我。
from cnn-for-image-retrieval.
感谢周日早上还来回复,第一次用matlab,很多地方都不懂,请见谅
1.图片看不出有异常
2.去掉图片,替换图片,还是一样的
3.定位到1982这张图片开始也不行
我的环境是win7 64 vs2010 matlab2015a matconvnet-1.0-beta17
图片传不上来,我贴到网盘了,链接:http://pan.baidu.com/s/1nuiPCDj
from cnn-for-image-retrieval.
@sudddenly 我在这边把你这幅图片放进这个database(有9张图片)里,加上你这幅图片,共10幅图片,然后运行,测试通过,没问题。你可以自己按照我这个测试一下,应该是你其他地方的问题。
from cnn-for-image-retrieval.
from cnn-for-image-retrieval.
Related Issues (15)
- 修复reference to non-existent field 'filters'
- error in extractCNN HOT 4
- faiss HOT 6
- question for video retrieval HOT 1
- does this method support to run on mobile device HOT 1
- ESP GAME HOT 1
- cnn提取的特征是否还有必要用hash HOT 2
- >> extractCNN boost::filesystem::canonical 我遇到这个问题 请指导! HOT 7
- blog打开不了 HOT 2
- queryInDatabaseDemo里的256feat2048Norml.mat或者256feat4096Norml.mat需要自己生成吗? HOT 1
- retrieval_virsulazation.m建议计算score用矩阵相乘,图像几十万张的时候会快很多 HOT 1
- You might be interested in Deep Video Analytics HOT 2
- Mistake in computing average precision HOT 8
- PicSearch demo? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cnn-for-image-retrieval.