Skip to content

Commit

Permalink
Merge pull request #65 from coralnet/dummyextractor-init-fix
Browse files Browse the repository at this point in the history
DummyExtractor: fix data_locations default value in constructor
  • Loading branch information
StephenChan authored Nov 9, 2023
2 parents f999c84 + 5ce7121 commit 6c4b1f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.6.0 (WIP)

- Fixed `DummyExtractor` constructor so that `data_locations` defaults to an empty dict, not an empty list. This fixes serialization of an `ExtractFeaturesMsg` containing `DummyExtractor`.

## 0.5.0

- Generalized feature extractor support by allowing use of any `FeatureExtractor` subclass instance, and extractor files loaded from anywhere (not just from CoralNet's S3 bucket, which requires CoralNet auth).
Expand Down
2 changes: 1 addition & 1 deletion spacer/extract_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def __init__(self,
data_locations: dict[str, DataLocation] = None,
feature_dim: int = 4096,
**kwargs):
super().__init__(data_locations or [], **kwargs)
super().__init__(data_locations or dict(), **kwargs)

# If you want these features to be compatible with an actual
# classifier, you should make this match the feature_dim that
Expand Down

0 comments on commit 6c4b1f5

Please sign in to comment.