Comments (5)
Please refer to this repo.
from interfacegan.
Hello, I use LIA to extract latent codes from input images and then use them as inputs for interfacegan. However, I cannot generate results of the same input images of LIA. I used pre-trained models from LIA and interfacegan. Do I need to process extracted latent codes? Or can you provide codes and models for Fig.11? Thank you.
E, _, _, Gs, _ = load_pkl(args.restore_path)
real = tf.placeholder('float32', [None, 3, args.image_size, args.image_size], name='real_image')
encoder_w = E.get_output_for(real, phase=False)
sess = tf.get_default_session()
latent_code = sess.run(encoder_w, feed_dict={real: input_image})
np.save('%s/%s.npy' % (save_dir, im_name), latent_code)
python edit.py \
-m pggan_celebahq \
-b boundaries/pggan_celebahq_smile_boundary.npy \
-i $INPUT_LATENT_CODES_PATH \
-o results/from_latent_code/pggan/celebahq/smile_editing
python edit.py \
-m stylegan_ffhq \
-b boundaries/stylegan_ffhq_smile_boundary.npy \
-i $INPUT_LATENT_CODES_PATH \
-o results/from_latent_code/stylegan/ffhq/smile_editing
from interfacegan.
You are using the official PGGAN (pggan_celebahq) and StyleGAN (stylegan_ffhq) models for editing, but LIA uses its own model for inversion. Please find the boundaries for LIA model and use them for manipulation. This repo only contains the boundaries and editing script w.r.t. PGGAN and StyleGAN.
from interfacegan.
Can you give a guidance to reproduce results in Fig.11? Thank you.
from interfacegan.
- Find your own boundaries with LIA model (this process is exactly the same as that of PGGAN and StyleGAN).
- Invert real images with LIA encoder and get the inverted codes.
- Move the inverted codes towards the boundaries (use
utils/manipulator.py
) - Use the LIA generator to produce images with the manipulated codes.
from interfacegan.
Related Issues (20)
- AttributeError: module 'tensorflow' has no attribute 'get_variable' HOT 2
- Access to training modules
- how do I test on my own set of images? Whenever I try testing it opens up sample images..Any help will be appreciated, HOT 2
- How can we generate the 256 resolution images for style GAN on celebahq instead of 1024?
- Can I use my own face for Semantic Face Editing HOT 1
- changing dataset HOT 4
- Integrate expression boundaries
- What is the rationale behind sampling from the normal distribution for the W latent code, which is not a normal distribution at all?
- Training with custom dataset HOT 3
- Multiple Semantics. HOT 1
- Pretrained Model on pggan
- how can i run an inference using CPU?
- how to get latent codes from jpg/png images? HOT 1
- question about the proof
- Can you provide me with ppgan_ celebahq.pth file as pre-training model HOT 1
- It can realize the attributes of other kinds of objects, not the search of face attributes, such as the conversion of landscape images into snow, rain, mountains, etc.
- Issue regarding method linear_interpolate in file utils/manipulator.py
- How to train a classifier to get attribute scores HOT 2
- does it provide the function of generating an eyeglass on my own face photo?
- About editing HOT 2
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 interfacegan.