Comments (4)
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.
Thanks a lot!
Also, I would be really grateful if you could tell what these 3 parameters should be for CAT2000 images.
from sam.
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.
Thanks a lot :)
from sam.
Related Issues (20)
- raise NotImplementedError HOT 2
- 'NoneType' object is not subscriptable HOT 2
- Why dose the "loss" reduce first and then increase during the training? HOT 1
- Support in TX2 HOT 2
- where is the prediction HOT 1
- train model HOT 3
- On the CPU HOT 1
- ImportError: cannot import name get_from_module HOT 1
- Error in virtual env HOT 1
- I met this error about CorrMM images and kernel must have the same stack size HOT 1
- Retraining the models
- how to calculate this fix and map
- Getting this IOError HOT 1
- Adapting different testing image shapes? HOT 1
- fix_map = scipy.io.loadmat(path)["I"] HOT 1
- How to learn the prior maps in your method?
- Is there a Pytorch version
- Outputs must be theano variables or Out instances
- cannot import name 'RMSprop' from 'keras.optimizers' HOT 2
- how to visualize the Saliency Maps?
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 sam.