Giter Club home page Giter Club logo

Comments (4)

willard-yuan avatar willard-yuan commented on May 27, 2024

你按下面的方式调试一下:

  1. 首先找到那个第1982的图片,确认一下图片有没有什么异常;
  2. 在图库所在目录去掉该张图片,然后看看图库中的图是否全部跑过去;
  3. 或者按下面方式定位到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.

msftgitsklsd avatar msftgitsklsd commented on May 27, 2024

感谢周日早上还来回复,第一次用matlab,很多地方都不懂,请见谅
1.图片看不出有异常
2.去掉图片,替换图片,还是一样的
3.定位到1982这张图片开始也不行

我的环境是win7 64 vs2010 matlab2015a matconvnet-1.0-beta17
图片传不上来,我贴到网盘了,链接:http://pan.baidu.com/s/1nuiPCDj

from cnn-for-image-retrieval.

willard-yuan avatar willard-yuan commented on May 27, 2024

@sudddenly 我在这边把你这幅图片放进这个database(有9张图片)里,加上你这幅图片,共10幅图片,然后运行,测试通过,没问题。你可以自己按照我这个测试一下,应该是你其他地方的问题。

from cnn-for-image-retrieval.

msftgitsklsd avatar msftgitsklsd commented on May 27, 2024

@willard-yuan 多谢

from cnn-for-image-retrieval.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.