Comments (3)
Sorry for the late reply.
- 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).
- You can write a metric that outputs 1 if the angle is less than X degree and 0 otherwise.
from rotnet.
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.
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)
- Some questions about RotNet HOT 3
- input array from shape error HOT 2
- Model Retraining- Transfer Learning HOT 3
- Image size for training and testing
- requirements.txt HOT 1
- the street model size is too big use thr ResNet
- Error message when training model HOT 3
- Can we use this code to train for our custom data HOT 7
- Need more information? HOT 7
- ValueError: Unknown layer: Merge HOT 6
- terminate called without an active exception HOT 1
- Can rotnet trian on vgg instead of resnet 50? HOT 1
- Is U-Net architecture a suitable contender for your model?
- How to train my own data set
- How to train with GPU HOT 2
- Maybe the network didn't learn the horizontal information HOT 4
- val_angle_error is too high
- Implementation of `train_street_view` over PyTorch HOT 1
- Train with smaller classes HOT 7
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 rotnet.