mirror of
https://github.com/storytold/FineTrainers-Conditioning.git
synced 2026-10-25 08:29:35 +00:00
remove pipeline hooks
This commit is contained in:
@@ -813,6 +813,10 @@ class Trainer:
|
|||||||
num_videos_per_prompt=self.args.num_validation_videos_per_prompt,
|
num_videos_per_prompt=self.args.num_validation_videos_per_prompt,
|
||||||
generator=self.state.generator,
|
generator=self.state.generator,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Remove all hooks that might have been added during pipeline initialization to the models
|
||||||
|
pipeline.remove_all_hooks()
|
||||||
|
del pipeline
|
||||||
|
|
||||||
prompt_filename = string_to_filename(prompt)[:25]
|
prompt_filename = string_to_filename(prompt)[:25]
|
||||||
artifacts = {
|
artifacts = {
|
||||||
|
|||||||
Reference in New Issue
Block a user