Skip to content

Commit

Permalink
cleanup pipeline test artifacts after completion.
Browse files Browse the repository at this point in the history
  • Loading branch information
monorimet committed Apr 9, 2024
1 parent 699ba0d commit fa6ba50
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions models/turbine_models/tests/sdxl_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,10 @@ def test05_t2i_generate_images(self):
arguments["seed"],
)
print("Image generation complete.")
os.remove(os.path.join(arguments["pipeline_dir"], "prompt_encoder.vmfb"))
os.remove(os.path.join(arguments["pipeline_dir"], f"{arguments["scheduler_id"]}_unet_{str(arguments["num_inference_steps"])}.vmfb"))
os.remove(os.path.join(arguments["pipeline_dir"], "vae_decode.vmfb"))
os.remove(os.path.join(arguments["pipeline_dir"], "full_pipeline.vmfb"))


if __name__ == "__main__":
Expand Down

0 comments on commit fa6ba50

Please sign in to comment.