Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How did you get the pose #2

Closed
WenjiaWang0312 opened this issue Dec 24, 2020 · 8 comments
Closed

How did you get the pose #2

WenjiaWang0312 opened this issue Dec 24, 2020 · 8 comments

Comments

@WenjiaWang0312
Copy link

Hi there. I read in your paper that you can "learn a 3D-aware generative model from unposed 2D images." But in section 3.2.1 you also mentioned that "We sample the camera pose ξ = [R|t] from a pose distribution p ξ ." So I am wondering what's the pose in fact. How to get pose from the unposed images?

@TDeVries
Copy link

TDeVries commented Jan 5, 2021

In GRAF I think it is assumed that the pose distribution is known (i.e. we know the range of possible camera locations on a viewing sphere around the target object), but the poses of individual images in the dataset are not known.

If you have an unposed image and want to find the pose using a trained GRAF model, you could probably do that by optimizing the latent code and camera pose parameters simultaneously such that the model generates an image matching the target.

@WenjiaWang0312
Copy link
Author

In GRAF I think it is assumed that the pose distribution is known (i.e. we know the range of possible camera locations on a viewing sphere around the target object), but the poses of individual images in the dataset are not known.

If you have an unposed image and want to find the pose using a trained GRAF model, you could probably do that by optimizing the latent code and camera pose parameters simultaneously such that the model generates an image matching the target.

In the paper they used the dataset VOX and CatFace. I think these images do not have corresponding camera poses? Maybe I should read the code carefully.

@katjaschwarz
Copy link
Collaborator

Yes, we assume the rough distribution over camera poses is known (but do not require posed images). You can find the choices for the pose distributions of all datasets in Table 4 of our supplementary material .

@WenjiaWang0312
Copy link
Author

WenjiaWang0312 commented Jan 7, 2021

Yes, we assume the rough distribution over camera poses is known (but do not require posed images). You can find the choices for the pose distributions of all datasets in Table 4 of our supplementary material .

Thanks.
So you mean that we do not need to provide each image in VOXCeleb with a camera poses? Just a range?

@katjaschwarz
Copy link
Collaborator

Yes, exactly. In the code we do this by setting a range for azimuth and polar angle in the config file via parameters u (umin, umax) and v (vmin, vmax):

u = azimuth / 360
v = 0.5* (1-cos(polar * pi/180))

We use u and v here because sampling u, v uniformly in their respective range leads to uniformly distributed poses on the sphere in the given range. Note that sampling azimuth and polar angle directly from a uniform distribution would lead to a pose distribution that is not uniformly distributed on the sphere in the given range.

@Darcy-vision
Copy link

Yes, exactly. In the code we do this by setting a range for azimuth and polar angle in the config file via parameters u (umin, umax) and v (vmin, vmax):

u = azimuth / 360 v = 0.5* (1-cos(polar * pi/180))

We use u and v here because sampling u, v uniformly in their respective range leads to uniformly distributed poses on the sphere in the given range. Note that sampling azimuth and polar angle directly from a uniform distribution would lead to a pose distribution that is not uniformly distributed on the sphere in the given range.

Hi, I want to know why the input is randomly sampled pose during training, but after training the Generator can learn the patterns of image changes corresponding to pose changes ? Because the discriminator also has no GT pose to guide the learning. @katjaschwarz

@katjaschwarz
Copy link
Collaborator

The image changes correspond to pose changes because the neural radiance field is projected to an image using volume rendering. Conditioning the discriminator is not needed but can help and is used in some later works.

@Darcy-vision
Copy link

I understand now. Thank you for your explanation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants