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

[Feature] Add the ability to work with images #14

Open
nxexox opened this issue Oct 23, 2023 · 0 comments
Open

[Feature] Add the ability to work with images #14

nxexox opened this issue Oct 23, 2023 · 0 comments
Labels
big feature Big feature, new functionality, etc... enhancement New feature or request

Comments

@nxexox
Copy link
Owner

nxexox commented Oct 23, 2023

Problem

I can only create applications that take already arrays of primitives and return primitive structures. But if I want to send a picture, I need to preprocess it into an array of numbers and send it. It would be cool to add data transformers for images and vice versa. This will allow the use of models that accept images as input and models that produce images as output.

Examples

Config file:

...
ml:
    data_transformer_for_predict: "mlup.ml.data_transformers.image_data_transformer.ImageJPGDataTransformer"
    data_transformer_for_predicted: "mlup.ml.data_transformers.image_data_transformer.ImageJPGDataTransformer"
web:
    inner_data_type: "file". # Default is primitive
request.post("http://0.0.0.0:8009/predict", files={'upload_file': open('image.jpg', 'rb')})
@nxexox nxexox added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers big feature Big feature, new functionality, etc... labels Oct 23, 2023
@nxexox nxexox changed the title [Feature] Добавить возможность работы с картинками [Feature] Add the ability to work with images Oct 23, 2023
@nxexox nxexox removed help wanted Extra attention is needed good first issue Good for newcomers labels Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
big feature Big feature, new functionality, etc... enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant