Comments (5)
You can download the official styleGAN weights at this time. You can find stylegan-ffhq-1024x1024.pkl in the Resource section of the README below.
https://github.com/NVlabs/stylegan
or
https://drive.google.com/uc?id=1MEGjdvVpUsu1jB4zrXZN7Y4kBBOzizDQ
If you can't use google drive, I can't help you because the way I provide it is also google drive. Sorry about that.
from stylegan_latenteditor.
Thank you very much for your reply. I've got the file. The weight_convert.py file frequently displays “no attribute ‘XXX’“ errors, so I want to know which version of your TensorFlow is? Does expression transfer correspond to facial_exchange.py file? Thanks again for your reply.
from stylegan_latenteditor.
The environment at the time of development has been discarded, but it should be possible to convert it using tensorflow-gpu==1.15.
The paper "Unconstrained Facial Expression Transfer using Style-based Generator" corresponds to facial_exchange.py.
from stylegan_latenteditor.
Thank you very much for your answer. I encountered the following problem when running the facial_exchange.py file. The problem is with the line "loss_2.Backward ()". After querying, it is found that if the "optimizer.step()" after "loss_1.backward ()" is removed, it can run normally, so does removing this line have any effect? Is the result still correct?In addition, what are the meanings of the four folders of program running results: a, e, result1 and result2 respectively? I am very sorry that I did not observe the corresponding relationship in the result, so I ask you for help. I am looking forward to your reply.
Here is the output and errors from when I ran your original program:
Start
iter0: loss0 --6.6923747062683105, loss1 --5.94498374084651e-07
Traceback (most recent call last):
File "facial_exchange.py", line 194, in
main()
File "facial_exchange.py", line 88, in main
loss_2.backward()
File "/home/cqupt1811/anaconda3/lib/python3.7/site-packages/torch/tensor.py", line 221, in backward
torch.autograd.backward(self, gradient, retain_graph, create_graph)
File "/home/cqupt1811/anaconda3/lib/python3.7/site-packages/torch/autograd/init.py", line 132, in backward
allow_unreachable=True) # allow_unreachable flag
RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.FloatTensor [1, 512]], which is output 0 of SelectBackward, is at version 2; expected version 1 instead. Hint: enable anomaly detection to find the operation that failed to compute its gradient, with torch.autograd.set_detect_anomaly(True).
from stylegan_latenteditor.
Hmmm. Maybe it's the version of pyotrch. I'm sorry but I can't experiment right away in my environment. is it possible to try with an older version such as pytoch 1.4.0?
The folder a and e are the optimized images for the appearance and expression images respectively, and the result1 and result2 are the resulting images when the appearance and expression are swapped.
from stylegan_latenteditor.
Related Issues (18)
- About noise optimize in image2styleGAN++ HOT 6
- error in facial_exchange.py HOT 7
- style transfer
- There might be mistakes in weight_convert.py
- facial.exchange.py
- crossover operation
- ST
- Expression transfer
- The version
- about the generated synth_img in encode_image.py HOT 2
- boundary directory is missing HOT 2
- can not encode another resolution image except 1024x1024 HOT 1
- About the Style Transfer HOT 1
- How to change default image? HOT 1
- Minor fix in facial_exchange.py
- failed to locate the G_synthesis function HOT 1
- weight_convert.py error assert state["version"] in [2, 3] AssertionError HOT 4
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 stylegan_latenteditor.