Skip to content

Commit

Permalink
fix: minor fix to correct debug statement and correct order arg for c…
Browse files Browse the repository at this point in the history
…luster
  • Loading branch information
danellecline committed Sep 13, 2024
1 parent 216a4fb commit 645e979
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sdcat/cluster/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def cluster_vits(

# Skip the embedding extraction if all the embeddings are cached
if num_cached != len(images):
debug(f'Extracted embeddings from {num_cached} images...')
debug(f'Extracted embeddings from {len(images)} images...')
compute_norm_embedding(model, images, device)

# Fetch the cached embeddings
Expand Down
2 changes: 1 addition & 1 deletion sdcat/cluster/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def is_day(utc_dt):

# Cluster the detections
df_cluster = cluster_vits(prefix, model, df, save_dir, alpha, cluster_selection_epsilon, cluster_selection_method,
min_similarity, min_cluster_size, min_samples, use_tsne, device)
min_similarity, min_cluster_size, min_samples, device, use_tsne, roi=False)

# Merge the results with the original DataFrame
df.update(df_cluster)
Expand Down

0 comments on commit 645e979

Please sign in to comment.