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

Log table images #11464

Open
wants to merge 40 commits into
base: master
Choose a base branch
from
Open

Conversation

jessechancy
Copy link
Collaborator

@jessechancy jessechancy commented Mar 19, 2024

🛠 DevTools 🛠

Open in GitHub Codespaces

Install mlflow from this PR

pip install git+https://github.com/mlflow/mlflow.git@refs/pull/11464/merge

Checkout with GitHub CLI

gh pr checkout 11464

Related Issues/PRs

#xxx

What changes are proposed in this pull request?

  • Add log_table support for images

How is this PR tested?

  • Existing unit/integration tests
  • New unit/integration tests
  • Manual tests

Does this PR require documentation update?

  • No. You can skip the rest of this section.
  • Yes. I've updated:
    • Examples
    • API references
    • Instructions

Release Notes

Is this a user-facing change?

  • No. You can skip the rest of this section.
  • Yes. Give a description of this change to be included in the release notes for MLflow users.

What component(s), interfaces, languages, and integrations does this PR affect?

Components

  • area/artifacts: Artifact stores and artifact logging
  • area/build: Build and test infrastructure for MLflow
  • area/deployments: MLflow Deployments client APIs, server, and third-party Deployments integrations
  • area/docs: MLflow documentation pages
  • area/examples: Example code
  • area/model-registry: Model Registry service, APIs, and the fluent client calls for Model Registry
  • area/models: MLmodel format, model serialization/deserialization, flavors
  • area/recipes: Recipes, Recipe APIs, Recipe configs, Recipe Templates
  • area/projects: MLproject format, project running backends
  • area/scoring: MLflow Model server, model deployment tools, Spark UDFs
  • area/server-infra: MLflow Tracking server backend
  • area/tracking: Tracking Service, tracking client APIs, autologging

Interface

  • area/uiux: Front-end, user experience, plotting, JavaScript, JavaScript dev server
  • area/docker: Docker use across MLflow's components, such as MLflow Projects and MLflow Models
  • area/sqlalchemy: Use of SQLAlchemy in the Tracking Service or Model Registry
  • area/windows: Windows support

Language

  • language/r: R APIs and clients
  • language/java: Java APIs and clients
  • language/new: Proposals for new client languages

Integrations

  • integrations/azure: Azure and Azure ML integrations
  • integrations/sagemaker: SageMaker integrations
  • integrations/databricks: Databricks integrations

How should the PR be classified in the release notes? Choose one:

  • rn/none - No description will be included. The PR will be mentioned only by the PR number in the "Small Bugfixes and Documentation Updates" section
  • rn/breaking-change - The PR will be mentioned in the "Breaking Changes" section
  • rn/feature - A new user-facing feature worth mentioning in the release notes
  • rn/bug-fix - A user-facing bug fix worth mentioning in the release notes
  • rn/documentation - A user-facing documentation change worth mentioning in the release notes

Signed-off-by: Jesse Chan <jesse.chan@databricks.com>
Signed-off-by: Jesse Chan <jesse.chan@databricks.com>
Signed-off-by: Jesse Chan <jesse.chan@databricks.com>
Copy link

github-actions bot commented Mar 19, 2024

Documentation preview for 944d78f will be available when this CircleCI job
completes successfully.

More info

mlflow-automation and others added 6 commits March 19, 2024 15:12
…1466)

Signed-off-by: mlflow-automation <mlflow-automation@users.noreply.github.com>
Signed-off-by: Ben Wilson <39283302+BenWilson2@users.noreply.github.com>
Co-authored-by: mlflow-automation <mlflow-automation@users.noreply.github.com>
Co-authored-by: Ben Wilson <39283302+BenWilson2@users.noreply.github.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
…1472)

Signed-off-by: mlflow-automation <mlflow-automation@users.noreply.github.com>
Co-authored-by: mlflow-automation <mlflow-automation@users.noreply.github.com>
Signed-off-by: Clemens Kolbitsch <clemens.kol@gmail.com>
Co-authored-by: Clemens Kolbitsch <clemens.kolbitsch@broadcom.com>
…w#11478)

Signed-off-by: Ben Wilson <benjamin.wilson@databricks.com>
Copy link
Collaborator

@chenmoneygithub chenmoneygithub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Jesse, overall looks good! Let's wait for #11404.

try:
import PIL
except ImportError as exc:
raise ImportError(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could lead to strange UX - for users not interested in image logging, they will still hit this code block. We should throw a warning and skip this part instead.

Comment on lines +1755 to +1761
width, height = image.size
if width > height:
new_width = 256
new_height = int(height * (new_width / width))
else:
new_height = 256
new_width = int(width * (new_height / height))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I remember you have a function for compressing image?

WeichenXu123 and others added 19 commits March 21, 2024 02:43
…ow#11483)

Signed-off-by: Weichen Xu <weichen.xu@databricks.com>
…low#11468)

Signed-off-by: Victor <victor7sun@gmail.com>
Signed-off-by: dbczumar <corey.zumar@databricks.com>
Co-authored-by: dbczumar <corey.zumar@databricks.com>
Signed-off-by: Daniel Lok <daniel.lok@databricks.com>
Signed-off-by: Sunish Sheth <sunishsheth2009@gmail.com>
Signed-off-by: mlflow-automation <mlflow-automation@users.noreply.github.com>
Co-authored-by: mlflow-automation <mlflow-automation@users.noreply.github.com>
…1495)

Signed-off-by: mlflow-automation <mlflow-automation@users.noreply.github.com>
Signed-off-by: Ben Wilson <39283302+BenWilson2@users.noreply.github.com>
Co-authored-by: mlflow-automation <mlflow-automation@users.noreply.github.com>
Co-authored-by: Ben Wilson <39283302+BenWilson2@users.noreply.github.com>
Signed-off-by: B-Step62 <yuki.watanabe@databricks.com>
…1498)

Signed-off-by: mlflow-automation <mlflow-automation@users.noreply.github.com>
Co-authored-by: mlflow-automation <mlflow-automation@users.noreply.github.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
Signed-off-by: Harutaka Kawamura <hkawamura0130@gmail.com>
…vor (mlflow#11508)

Signed-off-by: B-Step62 <yuki.watanabe@databricks.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
Signed-off-by: Serena Ruan <serena.rxy@gmail.com>
Signed-off-by: fzyzcjy <5236035+fzyzcjy@users.noreply.github.com>
…lflow#11509)

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
mlflow#11510)

Signed-off-by: B-Step62 <yuki.watanabe@databricks.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
Signed-off-by: ernestwong-db <ernest.wong@databricks.com>
…low#11514)

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
Signed-off-by: Sergey Volkov <taranarmo@gmail.com>
B-Step62 and others added 12 commits March 26, 2024 13:13
Signed-off-by: B-Step62 <yuki.watanabe@databricks.com>
Signed-off-by: chenmoneygithub <chen.qian@databricks.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
Signed-off-by: Serena Ruan <serena.rxy@gmail.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
…lflow#11532)

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
Signed-off-by: Jesse Chan <jesse.chan@databricks.com>
Signed-off-by: Jesse Chan <jessechanwork@gmail.com>
Co-authored-by: Ben Wilson <39283302+BenWilson2@users.noreply.github.com>
Signed-off-by: Jesse Chan <jesse.chan@databricks.com>
Signed-off-by: Jesse Chan <jesse.chan@databricks.com>
Signed-off-by: Jesse Chan <jesse.chan@databricks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet