GithubHelp home page GithubHelp logo

Comments (5)

Relja avatar Relja commented on September 28, 2024 2

Details please.

  1. How to reproduce? What network, what version of MatConvNet?
  2. Full error text / back trace

from netvlad.

Relja avatar Relja commented on September 28, 2024 2

The problem is due to the latest version of MatConvNet (1.0-beta20) which introduced an error, thanks for pointing this out.
I have raised this issue with the MatConvNet team ( vlfeat/matconvnet#552 ) and am waiting to see what they do / how they fix it.

In the mean time, you have two options:

  1. Use a slightly older version of MatConvNet (1.0-beta18 or 1.0-beta19)

  2. Apply the following changes which seem to fix the problem:

a) in MatConvNet matlab/simplenn/vl_simplenn_tidy.m change line 50 if ~isfield(layer, 'weights') to if ~isfield(layer, 'weights') && ~isprop(layer, 'weights'), and line 106 if ~isfield(layer, defaults{i}) to if ~isfield(layer, defaults{i}) && ~isprop(layer, defaults{i})

b) In NetVLAD code, add weights= {} to files layerWholeL2Normalize.m, layerTotalAvg.m, layerTotalMax.m just after the line precious= false

c) in NetVLAD code, file netPrepareForTrain, change line 6 if i>=backPropToLayer && isFieldOrProp(net.layers{i}, 'weights') to if i>=backPropToLayer && isFieldOrProp(net.layers{i}, 'weights') && ~isempty(net.layers{i}.weights)

from netvlad.

zongbingwang avatar zongbingwang commented on September 28, 2024

Sorry for I did not give the details.

  1. setting:
    NetVLAD: Version 1.03 (04 Mar 2016)
    relja_matlab: Version 1.02 (29 Feb 2016)
    MatConvNet: 1.0-beta20

  2. Error:
    There are some errors when I use the function "relja_simplenn_tidy".

    Ther information:

    '''''''''''''''''''''''''''''''''''

    No public field weights exists for class layerWholeL2Normalize.

Error in vl_simplenn_tidy (line 51)
    layer.weights = {};

Error in relja_simplenn_tidy (line 25)
    net = vl_simplenn_tidy(net);

Error in test (line 21)
    net = relja_simplenn_tidy(net);

'''''''''''''''''''''''''''''''''''''''''''

3.Test Code:

% Set the MATLAB paths
setup;

% ---------- Use/test our networks

% Load our network
netID= 'vd16_tokyoTM_conv5_3_vlad_preL2_intra_white';
paths= localPaths();
load( sprintf('%s%s.mat', paths.ourCNNs, netID), 'net' );

a = sprintf('%s%s.mat', paths.ourCNNs, netID);
disp (a);
net= relja_simplenn_tidy(net);      //error

4.And I am new with MATLAB.. Thank you very much!!

from netvlad.

zongbingwang avatar zongbingwang commented on September 28, 2024

thank you very much!

from netvlad.

Relja avatar Relja commented on September 28, 2024

The MatConvNet team has fixed the issue I referenced above (in patch vlfeat/matconvnet@91399d4 ), so the NetVLAD code works without any modifications now.

from netvlad.

Related Issues (20)

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.