Comments (3)
Hi @cdrwolfe, it's a good issue. To quickly implement your work, you can use the sample_from_path
function in interpolate_sample.py
and pass the projected latents into lantent_a
and latent_b
. Also, I will support interpolation between saved latents soon.
from mmgeneration.
Cheers!,
I've implemented a hack using as you described using the two latents a and b. I just have one or two questions.
The latent_n from my point of view is saved for each image to a .pt so i can use later. It seems to be a [3,512] tensor and using the above approach if i interpolate between two latents and save their images. Lookig at line+ 229 of interpolate_sample.py:
results = results.reshape(-1, ch, h, w)
For a 50 interval interpolation...
When i run it using my latents this approach basically flattens the [3, 50, 3, 512] into a [150, 3, 512] or 150 images, where each 50 is a sequence of latent_a to latent_b. Using the standard interpolate_sample.py it seems I don't get this, which is what i want, instead i get basically 3 X the number of images of the same thing, (interpolation between latents a and b).
Why does the latent [3,512] seem to have 3 latent codes which are then used to create 3 differant versions of the same thing? I thought perhaps I should take the 3 sets of images and try and get their mean for a combiend single set of images, but couldn't figure out how :).
Anyrate I look forward to your solution :)
from mmgeneration.
I have added this function in #167 . You can use stylegan_projector.py
to produce projection file. Then just add --proj-latent xxx/project_result.pt
at the end of interpolation command line. I'm sorry for adding this function a little late.
from mmgeneration.
Related Issues (20)
- Latent-Diffusion Models HOT 7
- the Noise Injection method of styleGANv1 is different from StyleGANv2 HOT 2
- RuntimeError: fused_bias_leakyrelu_op_impl: implementation for device cuda:0 not found. HOT 1
- "assert self.is_domain_reachable"
- DDPM training problem HOT 1
- [Bug] Non-distributed Training Error HOT 5
- [Bug] Error with "Positional Encoding as Spatial Inductive Bias in GANs" inference result have artifact HOT 1
- RuntimeError: ModuleNotFoundError: No module named 'matplotlib.blocking_input'
- [Feature] mmgeneration support High dynamic range(HDR) imaging based Deep learning? HOT 1
- Can't work on device cuda:1
- [New Models] Wav2Lip
- [Bug] subprocess.CalledProcessError: Command 'gcc --version | head -n1' returned non-zero exit status 255.
- There is a discrepancy in the results when reproducing the facades in cyclegan, and the FID and IS are inconsistent with the provided ones
- About train by epoch
- How to modify the configuration file when using styleganv2 to generate a single-channel 800x800 SAR image?
- [Feature] How to generate images from my own dataset by DCGAN?
- [Bug] 安装错误 HOT 1
- [New Models] HOT 1
- MMCV版本问题 HOT 1
- in launch_agent raise ChildFailedError( torch.distributed.elastic.multiprocessing.errors.ChildFailedError:
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 mmgeneration.