[BugFix] __del__ exit don't join the spawned process (#555)
Signed-off-by: yinpeiqi <yinpeiqi809@gmail.com> Co-authored-by: Hongsheng Liu <liuhongsheng4@huawei.com>
This commit is contained in:
1 parent
194fa159a3
commit
2eebd22e32
6 files changed
+61
-41
No files matched your search
@@ -78,5 +78,3 @@ def test_cache_dit(model_name: str):
|
||||
# Check image size
|
||||
assert images[0].width == width
|
||||
assert images[0].height == height
|
||||
# manually close the Omni instance
|
||||
m.close()
|
||||
@@ -63,5 +63,3 @@ def test_diffusion_model(model_name: str):
|
||||
assert images[0].width == width
|
||||
assert images[0].height == height
|
||||
images[0].save("image_output.png")
|
||||
# manually close the Omni instance
|
||||
m.close()
|
||||
@@ -56,5 +56,3 @@ def test_video_diffusion_model(model_name: str):
|
||||
assert frames.shape[1] == num_frames
|
||||
assert frames.shape[2] == height
|
||||
assert frames.shape[3] == width
|
||||
# manually close the Omni instance
|
||||
m.close()
|
||||
@@ -74,5 +74,3 @@ def test_teacache(model_name: str):
|
||||
# Check image size
|
||||
assert images[0].width == width
|
||||
assert images[0].height == height
|
||||
# manually close the Omni instance
|
||||
m.close()
|
||||
Reference in new issue
Block a user