Code Monkey home page Code Monkey logo

boxes_tightness_prior's People

Contributors

hkervadec 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

Watchers

 avatar  avatar  avatar

boxes_tightness_prior's Issues

An output with one or more elements was resized since it had shape

An output with one or more elements was resized since it had shape [2], which does not match the required output shape [1, 2]. This behavior is deprecated, and in a future PyTorch release outputs will not be resized unless they have zero elements. You can explicitly reuse an out tensor t by resizing it, inplace, to zero elements with t.resize_(0). (Triggered internally at ../aten/src/ATen/native/Resize.cpp:26.) return torch.stack(batch, 0, out=out)

How to test

How to test the effect of the trained network on the test set?Thank you very much!

Log barrier loss implementation

Hello, I'm doing the final thesis of my bachelor's degree about object detection and I'm trying to apply your method to get a mask instead of the bounding boxes.

I've been extracting the key parts of your code (bounds and losses) to adapt it to my code but there is something I don't understand.

When applying the LogBarrierLoss, the bounds are given by parameter, as they are calculated when loading the data from the dataloader for the whole image (the positive area for the whole image times the margins).

However, the inference is done for each slice of the image (I guess it's because of memory issues, otherwise I'd appreciate to know why). When applying this loss to the prediction, the predicted mask for that slice is compared with the bounds of the full image from what I understand, instead of the bounds for that slice.

losses = [w * loss_fn(pred_probs, label[label_sampling], bound, box_priors) for loss_fn, label, w, bound in ziped]

What am I missing?

Thanks in advance and great job! It's being very helpful.

Missing 'BoxBounds' Class

Dear Hoel,

Thank you for sharing your code. I have the following error when running your code:
AttributeError: module 'bounds' has no attribute 'BoxBounds'

Could you add the BoxBounds class in bounds, please?

Thanks!
Cheers

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.