mirror of
https://github.com/storytold/FineTrainers-Conditioning.git
synced 2026-10-09 00:09:45 +00:00
update comment
This commit is contained in:
@@ -151,7 +151,10 @@ def prepare_latents(
|
||||
else:
|
||||
h = vae._encode(image_or_video)
|
||||
_, _, num_frames, height, width = h.shape
|
||||
# TODO(aryan): this is very very very stupid, but anything to make it work for now. refactor and design better later
|
||||
|
||||
# TODO(aryan): This is very stupid that we might possibly be storing the latents_mean and latents_std in every file
|
||||
# if precomputation is enabled. We should probably have a single file where re-usable properties like this are stored
|
||||
# so as to reduce the disk memory requirements of the precomputed files.
|
||||
return {
|
||||
"latents": h,
|
||||
"num_frames": num_frames,
|
||||
|
||||
@@ -813,7 +813,7 @@ class Trainer:
|
||||
num_videos_per_prompt=self.args.num_validation_videos_per_prompt,
|
||||
generator=self.state.generator,
|
||||
)
|
||||
|
||||
|
||||
# Remove all hooks that might have been added during pipeline initialization to the models
|
||||
pipeline.remove_all_hooks()
|
||||
del pipeline
|
||||
|
||||
Reference in New Issue
Block a user