Skip to content

Commit 823eb16

Browse files
authored
Merge pull request #67 from Flippchen/dev
updated packages
2 parents 8e091c2 + cd6db29 commit 823eb16

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

requirements.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
# Trainig
22
numpy==1.23.5
33
tensorflow==2.10.0
4-
matplotlib==3.7.1
5-
Pillow==9.5.0
4+
matplotlib==3.7.2
5+
Pillow==10.0.0
66
keras~=2.10.0
77
# Inference
8-
rembg==2.0.32
9-
onnxruntime==1.14.1
10-
scipy~=1.9.3
8+
rembg==2.0.50
9+
onnxruntime==1.15.1
10+
scipy==1.11.1
1111
# Export to onnx
1212
tf2onnx==1.14.0
1313
# Explaining the model
14-
shap~=0.41.0
15-
scikit-learn~=1.2.2
14+
shap==0.42.1
15+
scikit-learn==1.3.0
1616
# Confusion matrix
1717
seaborn~=0.12.2
1818
# Discord Callback
19-
requests==2.30.0
19+
requests==2.31.0
2020
# Testing
21-
pytest~=7.3.1
21+
pytest==7.4.0
2222

2323
# Optional
2424
# Vision Transformer

utilities/prepare_images.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import numpy as np
55
from scipy.ndimage import maximum_filter
6-
from PIL import Image, ImageOps, ImageFile, ImageFilter, ImageChops
6+
from PIL import Image, ImageOps, ImageFile, ImageChops
77
from rembg import remove, new_session
88
from PIL.Image import Image as PILImage
99
from typing import Tuple
@@ -154,7 +154,7 @@ def resize_and_pad_image(image: PILImage, target_size: Tuple, fill_color=(0, 0,
154154
new_height = target_size[1]
155155

156156
# Resize the image while maintaining its aspect ratio
157-
resized_image = image.resize((new_width, new_height), Image.ANTIALIAS)
157+
resized_image = image.resize((new_width, new_height), Image.Resampling.LANCZOS)
158158

159159
# Calculate padding
160160
padding_width = target_size[0] - new_width

0 commit comments

Comments
 (0)