Comments (9)
It can definitely, but you have to retrain it. The pretrained ones have been trained with crop=0.1 since this is a common values, used for good face detectors.
OK, I will try this. Thanks a lot.
from shapenet.
You could for example replace the values obtained from the landmarks with the values from a face detector. The easiest approach would be to install dlib
and use the frontal_face_detector
from shapenet.
You could for example replace the values obtained from the landmarks with the values from a face detector. The easiest approach would be to install
dlib
and use thefrontal_face_detector
Is this mean if I want to get keypoints from an object, I have to get bbox/lmk_bounds first? If my bbox is not accuracy, when set a larger area(crop = 0.2), can shapenet detects lmk well? In my private datasets, it seems not fit well...
from shapenet.
It can definitely, but you have to retrain it. The pretrained ones have been trained with crop=0.1 since this is a common values, used for good face detectors.
from shapenet.
It can definitely, but you have to retrain it. The pretrained ones have been trained with crop=0.1 since this is a common values, used for good face detectors.
If I have no lmk_bound, I should set crop=None in SingleShapeDataset.
And in the inference, the code as follows.
Is this the right way?
h, w = sample.img.shape[:2]
min_y, min_x, max_y, max_x = 0, 0, h, w
range_x = max_x - min_x
range_y = max_y - min_y
max_range = max(range_x, range_y) * (1 + crop)
center_x = min_x + range_x / 2
center_y = min_y + range_y / 2
tmp = sample.crop(center_y - max_range / 2,
center_x - max_range / 2,
center_y + max_range / 2,
center_x + max_range / 2)
from shapenet.
Yes, that's the way I would do this.
You should note, that the parameters for affine transformations are learned by the network, therefore it may not be that good to provide an image with lot's of non-face pixels around. Also the PCA might not be that suitable, since the face might be smaller and this might lead to an ambigous representation.
That said, it should nevertheless work, but may not perform exactly as good as the cropped version
from shapenet.
Yes, that's the way I would do this.
You should note, that the parameters for affine transformations are learned by the network, therefore it may not be that good to provide an image with lot's of non-face pixels around. Also the PCA might not be that suitable, since the face might be smaller and this might lead to an ambigous representation.
That said, it should nevertheless work, but may not perform exactly as good as the cropped version
OK, I will try it, thanks a lot.
from shapenet.
Hope this works for you. Please report back.
from shapenet.
Hope this works for you. Please report back.
Absolutely. I am going to train now.
from shapenet.
Related Issues (20)
- Config reading error: 'str' object has no attribute 'items' HOT 3
- A trainging problem HOT 1
- error for prediction: reading weights HOT 7
- question: how to get values of training losses HOT 2
- question: About the number of PCA components HOT 1
- installation error HOT 4
- question about predict HOT 6
- Invalid syntax error HOT 12
- Cat-landmark detection HOT 4
- Embed in mobile as dlib HOT 1
- wrong angle HOT 3
- delira.training.PyTorchNetworkTrainer missing argument HOT 7
- Prediction time compared with dlib HOT 5
- error while training HOT 4
- error in script predict_from_net.py HOT 3
- Grayscale faces HOT 2
- tf.train.Optimizer error HOT 1
- problem with prediction HOT 3
- pretrained weights, link broken.
- Training Question HOT 3
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 shapenet.