GithubHelp home page GithubHelp logo

Comments (4)

marcellacornia avatar marcellacornia commented on June 6, 2024

Hi @karandwivedi42,
thanks for downloading our code.

For the CAT2000 dataset, we fine-tuned our model, pre-trained on the SALICON, on the CAT2000 training set. We randomly selected 200 images as validation set (10 for each category) and we resized all images to 180 x 320.

For the evaluation, I suggest you to use the matlab code published by the MIT Saliency Benchmark organizers.

from sam.

karandwivedi42 avatar karandwivedi42 commented on June 6, 2024

Thanks a lot!

Also, I would be really grateful if you could tell what these 3 parameters should be for CAT2000 images.

from sam.

marcellacornia avatar marcellacornia commented on June 6, 2024

The other parameters are as follow:
shape_r = 180
shape_c = 320
shape_r_gt = 23
shape_c_gt = 40
shape_r_fix = 360
shape_c_fix = 640
upsampling_factor = 16

As you can see, due to memory occupation, we decided to not use the originally image size of the CAT2000 dataset. In fact, images from this dataset have all the same size of 1080 x 1920, which is a little too big. However, we brought our predictions to this size before the evaluation.

Additionally, we use a Lambda layer before returning the output of the model (after the upsampling):
outs_up = Lambda(prepare_output, prepare_output_shape)(outs_up)
where the two functions are as follow:
def prepare_output(x): return x[:, :, :shape_r_fix, :]
def prepare_output_shape(s): return s[:2] + (shape_r_fix, shape_c_fix)

Hope it works now!

from sam.

karandwivedi42 avatar karandwivedi42 commented on June 6, 2024

Thanks a lot :)

from sam.

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.