danielroich / PTI

Official Implementation for "Pivotal Tuning for Latent-based editing of Real Images" (ACM TOG 2022) https://arxiv.org/abs/2106.05744

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

use_locality_regularization = False?

lastapple opened this issue · comments

In your code "./configs/hyperparameters.py", the "use_locality_regularization" is False? The space_regulizer_loss is not calculated ?

For this specific configuration, space_regulizer_loss is not calculated.
You can activate it by changing the value to True.
If you plan to re-use the generator then I recommend changing the value, it will keep the W space intact.

The value is False by default because it enables faster inversion for experiments and one time usages

Thank you for your quick reply!As the loss is your contribution, I used to wonder why this parameter was set to false

lastapple

This is also useful when multiple images inverted simultaneously, but most users, especially non-expert, usually invert one image at a time.