Skip to content

Commit

Permalink
Finalize tests
Browse files Browse the repository at this point in the history
  • Loading branch information
HonzaCuhel committed Jan 13, 2024
1 parent 41e1211 commit 7327cbf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions tests/integration/test_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ def test_cuda_simple_sdxl_turbo_detection_pipeline():


@pytest.mark.skipif(
total_memory < 12 or total_disk_space < 16,
reason="Test requires at least 12GB of RAM and 16GB of HDD",
total_memory < 16 or total_disk_space < 16,
reason="Test requires at least 16GB of RAM and 16GB of HDD",
)
def test_cpu_simple_sdxl_detection_pipeline():
# Define target folder
Expand All @@ -243,8 +243,8 @@ def test_cpu_simple_sdxl_detection_pipeline():


@pytest.mark.skipif(
not torch.cuda.is_available() or total_memory < 12 or total_disk_space < 16,
reason="Test requires GPU, at least 12GB of RAM and 16GB of HDD",
not torch.cuda.is_available() or total_memory < 16 or total_disk_space < 16,
reason="Test requires GPU, at least 16GB of RAM and 16GB of HDD",
)
def test_cuda_simple_sdxl_detection_pipeline():
# Define target folder
Expand Down Expand Up @@ -396,8 +396,8 @@ def test_cuda_simple_sdxl_turbo_classification_pipeline():


@pytest.mark.skipif(
total_memory < 12 or total_disk_space < 16,
reason="Test requires at least 12GB of RAM and 16GB of HDD",
total_memory < 16 or total_disk_space < 16,
reason="Test requires at least 16GB of RAM and 16GB of HDD",
)
def test_cpu_simple_sdxl_classification_pipeline():
# Define target folder
Expand All @@ -419,8 +419,8 @@ def test_cpu_simple_sdxl_classification_pipeline():


@pytest.mark.skipif(
not torch.cuda.is_available() or total_memory < 12 or total_disk_space < 16,
reason="Test requires GPU, at least 12GB of RAM and 16GB of HDD",
not torch.cuda.is_available() or total_memory < 16 or total_disk_space < 16,
reason="Test requires GPU, at least 16GB of RAM and 16GB of HDD",
)
def test_cuda_simple_sdxl_classification_pipeline():
# Define target folder
Expand Down
8 changes: 4 additions & 4 deletions tests/unittests/test_image_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,16 @@ def test_cpu_sdxl_image_generator():


@pytest.mark.skipif(
not torch.cuda.is_available() or total_memory < 12 or total_disk_space < 16,
reason="Test requires GPU,at least 12GB of RAM and 16GB of HDD",
not torch.cuda.is_available() or total_memory < 16 or total_disk_space < 16,
reason="Test requires GPU, at least 16GB of RAM and 16GB of HDD",
)
def test_cuda_sdxl_turbo_image_generator():
_check_image_generator(StableDiffusionTurboImageGenerator, "cuda")


@pytest.mark.skipif(
total_memory < 12 or total_disk_space < 16,
reason="Test requiresat least 12GB of RAM and 16GB of HDD",
total_memory < 16 or total_disk_space < 16,
reason="Test requires at least 16GB of RAM and 16GB of HDD",
)
def test_cpu_sdxl_turbo_image_generator():
_check_image_generator(StableDiffusionTurboImageGenerator, "cpu")

0 comments on commit 7327cbf

Please sign in to comment.