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 can I perform 3D-Aware Domain Adaption and change input as custom image? #9

Open
hyojk2001 opened this issue Mar 27, 2023 · 4 comments

Comments

@hyojk2001
Copy link

At first, Thank you for this excellent services.

I want to cartoonized 3D view from seed image. so please tell me how to adapt cartoonized image.

And second, I think, seeds in your code means generating random image. but can I change this part to input my customed images rather than randomly generated image?

Thank you!

@MrTornado24
Copy link
Owner

Hi, thanks for your interest! For the first question, we will integrate 3D cartoonlization very soon. For the second, sure, you can drive your custumed images as we show in demos. You can first perform inversion to map the input image into the latent space of our model and then run the reenact scripts.

@hyojk2001
Copy link
Author

Hi, thanks for your interest! For the first question, we will integrate 3D cartoonlization very soon. For the second, sure, you can drive your custumed images as we show in demos. You can first perform inversion to map the input image into the latent space of our model and then run the reenact scripts.

Thank you for answering!
if I input image into the latent space of model, then which part of modules should I change?

# Generate images.
for seed_idx, seed in enumerate(seeds):
    print('Generating image for seed %d (%d/%d) ...' % (seed, seed_idx, len(seeds)))
    z = torch.from_numpy(np.random.RandomState(seed).randn(1, G.z_dim)).to(device)   <---------------

I think this part has to be changed. right? but it consists of 512 tensors in that variable and is normalized.

@ZhouFangru
Copy link

Hi,have you solved this problem?

@aurelianocyp
Copy link

+1
how to map a specific image to the latent code z

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