Skip to content

Commit

Permalink
Fix logging
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinShenk committed Jun 15, 2023
1 parent ce06552 commit c3e9276
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/simages/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from .extractor import EmbeddingExtractor
from .main import find_duplicates

__version__ = "23.0.1"
__version__ = "23.0.2"

__title__ = "simages"
__description__ = "Find similar images in a dataset"
Expand Down
6 changes: 3 additions & 3 deletions src/simages/extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,12 @@ def is_valid(path):
if not os.path.exists(embeddings_path):
self.train()
self.eval()
logging.info(f"saving embeddings to {embeddings_path}")
log.info(f"saving embeddings to {embeddings_path}")
np.save(embeddings_path, self.embeddings)
else:
logging.info("skipping training, loading embeddings from file")
log.info("skipping training, loading embeddings from file")
self.embeddings = np.load(embeddings_path)
logging.info(f"Embeddings shape {self.embeddings.shape}")
log.info(f"Embeddings shape {self.embeddings.shape}")


def _truncate_middle(self, string: str, n: int) -> str:
Expand Down

0 comments on commit c3e9276

Please sign in to comment.