Skip to content

Commit 4203446

Browse files
add last changes to test folder
1 parent 5325a28 commit 4203446

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_calculations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
def test_get_embeddings():
88
image_paths = read_images_from_directory("tests/test_images")
99
images = read_with_pil(image_paths)
10-
embeddings = get_embeddings(images=images, use_gpu=False)
10+
embeddings = get_embeddings(images=images, use_gpu=False, model="resnet-18")
1111
assert embeddings is not None, "Embeddings were not generated."
1212

1313

@@ -20,7 +20,7 @@ def test_calculate_pca():
2020
def test_calculate_kmeans():
2121
pca_embeddings = np.random.rand(10, 16)
2222
num_classes = 2
23-
centroid, labels, counts = calculate_kmeans(pca_embeddings, num_classes)
23+
centroid, labels, counts = calculate_kmeans(pca_embeddings, num_classes, iter=10)
2424
assert (
2525
len(set(labels)) == num_classes
2626
), "K-means did not cluster into the expected number of classes."

0 commit comments

Comments
 (0)