Skip to content

Commit

Permalink
Merge pull request THUDM#383 from LittleNyima/fix-deprecation
Browse files Browse the repository at this point in the history
fix deprecation of clear_objs_and_retain_memory
  • Loading branch information
zRzRzRzRzRzRzR authored Oct 1, 2024
2 parents 928f812 + a59ed84 commit a9a5546
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions finetune/train_cogvideox_lora.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
from diffusers.pipelines.cogvideo.pipeline_cogvideox import get_resize_crop_region_for_grid
from diffusers.training_utils import (
cast_training_params,
clear_objs_and_retain_memory,
free_memory,
)
from diffusers.utils import check_min_version, convert_unet_state_dict_to_peft, export_to_video, is_wandb_available
from diffusers.utils.hub_utils import load_or_create_model_card, populate_model_card
Expand Down Expand Up @@ -726,7 +726,7 @@ def log_validation(
}
)

clear_objs_and_retain_memory([pipe])
free_memory()

return videos

Expand Down

0 comments on commit a9a5546

Please sign in to comment.