Skip to content

Commit

Permalink
Merge pull request #91 from coralnet/pillow-10-2
Browse files Browse the repository at this point in the history
Update Pillow requirement to >=10.2.0
  • Loading branch information
StephenChan authored Jan 26, 2024
2 parents ca41b8b + 789f9e9 commit 6f5fbaf
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@

- S3 downloads are now always performed in the main thread, to prevent `RuntimeError: cannot schedule new futures after interpreter shutdown`.

- `S3Storage` and `storage_factory()` now use the parameter name `bucket_name` instead of `bucketname` to be consistent with other usages in pyspacer (by @yeelauren).

- `URLStorage` downloads and existence checks now have an explicit timeout of 20 seconds (this is a timeout for continuous unresponsiveness, not for the whole response).

- EfficientNet feature extraction now uses CUDA if available (by @yeelauren).

- Updates to pip-install dependencies:

- Pillow: >=10.0.1 to >=10.2.0

## 0.7.0

- `TrainClassifierMsg` labels arguments have changed. Instead of `train_labels` and `val_labels`, it now takes a single argument `labels`, which is a `TrainingTaskLabels` object (basically a set of 3 `ImageLabels` objects: training set, reference set, and validation set).
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ FROM caffe AS spacer
RUN pip3 install coverage==7.0.5
RUN pip3 install tqdm==4.65.0
RUN pip3 install fire==0.5.0
RUN pip3 install Pillow==10.1.0
RUN pip3 install Pillow==10.2.0
RUN pip3 install scikit-learn==1.1.3
RUN pip3 install torch==1.13.1
RUN pip3 install torchvision==0.14.1
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ description = "Spatial image analysis with pytorch and caffe backends."
readme = "README.md"
requires-python = ">=3.8"
dependencies = [
"Pillow>=10.0.1",
"Pillow>=10.2.0",
"numpy>=1.19",
"scikit-learn==1.1.3",
"torch==1.13.1",
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ tqdm==4.65.0
fire==0.5.0

# https://pillow.readthedocs.io/en/stable/releasenotes/index.html
Pillow==10.1.0
Pillow==10.2.0

# https://numpy.org/devdocs/release.html
numpy==1.24.1
Expand Down

0 comments on commit 6f5fbaf

Please sign in to comment.