Giter Club home page Giter Club logo

Comments (3)

d4nst avatar d4nst commented on August 15, 2024

Sorry for the late reply.

  1. You can just restrict the number of outputs in the last layer. For example, you can have 36 outputs instead of 360 and then only rotate the images in multiples of 10. Then you simply map each output to a rotation angle (class 0 -> angle 0, class 1 -> angle 10, etc).
  2. You can write a metric that outputs 1 if the angle is less than X degree and 0 otherwise.

from rotnet.

Longbowman avatar Longbowman commented on August 15, 2024

Thank you for your reply. Let me ask some other questions

then only rotate the images in multiples of 10

The problem is that we may have any rotation (not only in multiples of 10)
but we may have results that aren't very accurate (for example given that we need to track multiples of 10, when picture is rotated by 66 it should give 70 as a result. given that we have a metric where less then X degree angle error
Do we still rotate in multiples of 10 for training purposes or we don't need that?

Then you simply map each output to a rotation angle (class 0 -> angle 0, class 1 -> angle 10, etc).

How to do it to include it in y_pred?

from rotnet.

d4nst avatar d4nst commented on August 15, 2024

You can rotate the images with any degree and then generate the ground truth label by rounding the true angle to the closest multiple of 10. So if a picture is rotated 66, provide 70 as the ground truth label during training.

I'm not sure what you mean by your second question. You can just multiply the correct class by 10?

from rotnet.

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.