Skip to content

Commit

Permalink
Merge branch 'master' into bugfix/alexsherstinsky/integration_tests/f…
Browse files Browse the repository at this point in the history
…ix_failing_experiment_and_gbm_and_preprocessing_tests-2024_03_21-34
  • Loading branch information
alexsherstinsky committed Mar 23, 2024
2 parents a9319df + b2cb8b0 commit 8a8f7f8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion ludwig/features/image_feature.py
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,9 @@ def _finalize_preprocessing_parameters(
sample_num_bytes = []
failed_entries = []
for image_entry in column.head(sample_size):
if isinstance(image_entry, str):
if isinstance(image_entry, bytes):
image = read_image_from_bytes_obj(image_entry)
elif isinstance(image_entry, str):
# Tries to read image as PNG or numpy file from the path.
image, num_bytes = read_image_from_path(image_entry, return_num_bytes=True)
if num_bytes is not None:
Expand Down
2 changes: 1 addition & 1 deletion ludwig/globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# limitations under the License.
# ==============================================================================

LUDWIG_VERSION = "0.10.1.dev"
LUDWIG_VERSION = "0.10.2.dev"

MODEL_WEIGHTS_FILE_NAME = "model_weights"
MODEL_HYPERPARAMETERS_FILE_NAME = "model_hyperparameters.json"
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ torchaudio
torchtext
torchvision
pydantic<2.0
transformers>=4.38.1
transformers>=4.39.0
tifffile
imagecodecs
tokenizers>=0.15
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

setup(
name="ludwig",
version="0.10.1.dev",
version="0.10.2.dev",
description="Declarative machine learning: End-to-end machine learning pipelines using data-driven configurations.",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 8a8f7f8

Please sign in to comment.