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 0011328
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 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,18 @@ 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"],
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 0011328

Please sign in to comment.