Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update requirements.txt and pyproject.toml #40

Merged
merged 3 commits into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion kimm/models/base_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@

for _weights, _origin, _file_name in self.available_weights:
if weights == _weights:
return f"{_origin}/{_file_name}"
return f"{_origin}{_file_name}"

Check warning on line 228 in kimm/models/base_model.py

View check run for this annotation

Codecov / codecov/patch

kimm/models/base_model.py#L228

Added line #L228 was not covered by tests

# Failed to find the weights
_available_weights_name = [
Expand Down
6 changes: 4 additions & 2 deletions kimm/models/models_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,8 @@ def test_model_base_channels_last(
backend.set_image_data_format("channels_last")
model = model_class(weights=weights)
image_path = keras.utils.get_file(
"african_elephant.jpg", "https://i.imgur.com/Bvro0YD.png"
"elephant.png",
"https://github.com/james77777778/keras-image-models/releases/download/0.1.0/elephant.png",
)
# preprocessing
image = utils.load_img(image_path, target_size=(image_size, image_size))
Expand Down Expand Up @@ -411,7 +412,8 @@ def test_model_base_channels_first(
backend.set_image_data_format("channels_first")
model = model_class(weights=weights)
image_path = keras.utils.get_file(
"african_elephant.jpg", "https://i.imgur.com/Bvro0YD.png"
"elephant.png",
"https://github.com/james77777778/keras-image-models/releases/download/0.1.0/elephant.png",
)
# preprocessing
image = utils.load_img(image_path, target_size=(image_size, image_size))
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@ authors = [{ name = "Hong-Yu Chiu", email = "[email protected]" }]
maintainers = [{ name = "Hong-Yu Chiu", email = "[email protected]" }]
readme = "README.md"
requires-python = ">=3.9"
license = { file = "LICENSE" }
license = { text = "Apache License 2.0" }
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3 :: Only",
"Operating System :: Unix",
"Operating System :: MacOS",
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# "jax[cuda12_local]"

# Following is for github runner
tf-nightly-cpu==2.16.0.dev20240101
tensorflow-cpu==2.16.0rc0 # TODO: wait for TF 2.16 release

--extra-index-url https://download.pytorch.org/whl/cpu
torch>=2.1.0
Expand Down