GithubHelp home page GithubHelp logo

hide-and-seek's People

Contributors

kkanshul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

hide-and-seek's Issues

wrong results on pretrained GoogLeNet-HaS-32

Hi, I'm a novice on Torch7. I'm sorry for my confusion about how to get the prediction of an image. I wrote the following code:

-- ....

local modelCache   = paths.concat('./cache', 'model_googlenet_has_32.t7')
local model = torch.load(modelCache) 
model:evaluate()
model:cuda()
-- print(model)

for line in io.lines(paths.concat(DATA_ROOT, '../images_1-25000.txt')) do
  line = split(line, " ")
  local img = testHook({loadSize}, paths.concat(DATA_ROOT, line[1]))

  if img:dim() == 3 then
    img = img:view(1, img:size(1), img:size(2), img:size(3))
  end

  local predictions = model:forward(img:cuda())
  local pred_idx, pred_sorted = predictions:sort(2, true)
  print(line[1])
  print(pred_sorted[1][1]-1)
end

Where 'testHook' is extracted from https://github.com/soumith/imagenet-multiGPU.torch. But I got hardly 0 top-1 accuracy on 'ILSVRC2012_img_val'. What's wrong with my code?

Looking forward to your reply :)

setting the hidden pixel values

Hi, Krishna

Thank you for sharing the source cod for the awesome paper!
I was reading your paper to embed HaS into my pytorch model.
You mentioned the hidden pixel values are supposed to set to the mean of all the pixel values in the entire training. Does that mean I just need to change 0 to the mean of all the pixels at line 30 in hide_patch.py? (

img[x:x_end,y:y_end,:]=0
)
Thank you in advance.

Random cropping

What's the advantage of HaS over the random cropping that is commonly used for data augmentation?

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.