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

Refactor into library structure #2

Merged
merged 14 commits into from
Mar 7, 2023
Merged

Refactor into library structure #2

merged 14 commits into from
Mar 7, 2023

Conversation

NielsRogge
Copy link
Contributor

@NielsRogge NielsRogge commented Mar 7, 2023

This PR refactors the overall design of Express.

Main changes include:

  • include the main functionality of Express (helper functions, LoaderComponent and TransformComponent classes) in the "express" folder
  • include the Stable Diffusion components in an "examples" folder
  • include a "docs" folder where all documentation lives

To do:

  • add a "tests" folder where all tests live

@RobbeSneyders
Copy link
Member

Could you re-add the dependencies from the removed setup.cfg to the pyproject.toml?

@@ -1,83 +0,0 @@
"""Clean cut classifier"""
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems like this file can still be fetched from the history. Might want to find a way to remove it completely

@@ -51,4 +51,4 @@ exclude_dirs = ["*/mlpipelines/components/sd_finetuning_component/src/train_text

[build-system]
requires = ["poetry-core>=1.2.0"]
build-backend = "poetry.core.masonry.api"
build-backend = "poetry.core.masonry.api"
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you make sure that express (or express_components) is installable and can be used. I think this is missing a packages field. @RobbeSneyders is the plan still to have the setup.py in the common folder or should all the epxress dependencies move to here?

Copy link
Contributor Author

@NielsRogge NielsRogge Mar 7, 2023

Choose a reason for hiding this comment

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

I read a bit the docs of poetry and it turns out there's no need for a packages field, if the name field has the same name as the package. I've confirmed that I can install the express package using poetry install.

Copy link
Member

Choose a reason for hiding this comment

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

All dependencies should move here indeed.

We shouldn't need a packages field, Poetry should detect it automatically.

docs/README.md Outdated Show resolved Hide resolved
docs/README.md Outdated Show resolved Hide resolved
examples/single_node/data_loading,py Outdated Show resolved Hide resolved
docs/README.md Show resolved Hide resolved
docs/README.md Outdated Show resolved Hide resolved
docs/README.md Outdated Show resolved Hide resolved
@RobbeSneyders RobbeSneyders changed the title Refactor Refactor into library structure Mar 7, 2023
Copy link
Member

@RobbeSneyders RobbeSneyders left a comment

Choose a reason for hiding this comment

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

Made some final changes myself. Will already merge so we can continue the work in parallel.

@RobbeSneyders RobbeSneyders merged commit 54530b1 into main Mar 7, 2023
PhilippeMoussalli added a commit that referenced this pull request Mar 14, 2023
This PR refactors the overall design of Express.

Main changes include:

- include the main functionality of Express (helper functions,
LoaderComponent and TransformComponent classes) in the "express" folder
- include the Stable Diffusion components in an "examples" folder
- include a "docs" folder where all documentation lives

To do:

- [ ] add a "tests" folder where all tests live
@RobbeSneyders RobbeSneyders deleted the refactor branch May 15, 2023 16:30
Hakimovich99 pushed a commit that referenced this pull request Oct 16, 2023
This PR refactors the overall design of Express.

Main changes include:

- include the main functionality of Express (helper functions,
LoaderComponent and TransformComponent classes) in the "express" folder
- include the Stable Diffusion components in an "examples" folder
- include a "docs" folder where all documentation lives

To do:

- [ ] add a "tests" folder where all tests live
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.

3 participants