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

Migrate stable diffusion & controlnet components to PandasTransformComponent #219

Merged
merged 2 commits into from
Jun 20, 2023

Conversation

RobbeSneyders
Copy link
Member

Contributes to #203

This PR updates the reusable components of the stable diffusion / controlnet pipeline to use the new Pandas interface. I submit these separately since I've already tested them.

Some simplifications are clear:

  • No more map_partitions needed for batching
  • No more meta needed for apply or similar methods

Since we now set the meta of the map_partitions in the PandasTransformComponent based on the component spec, the returned dataframes are validated quite strictly. It does not allow any additional columns.

The Pandas implementation can probably be improved further as I'm not the biggest Pandas pro.

Copy link
Contributor

@NielsRogge NielsRogge left a comment

Choose a reason for hiding this comment

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

Looks very nice!

@RobbeSneyders RobbeSneyders merged commit f1b7ab5 into main Jun 20, 2023
@RobbeSneyders RobbeSneyders deleted the feature/pandas-components-sd branch June 20, 2023 12:47
Hakimovich99 pushed a commit that referenced this pull request Oct 16, 2023
…omponent (#219)

Contributes to #203 

This PR updates the reusable components of the stable diffusion /
controlnet pipeline to use the new Pandas interface. I submit these
separately since I've already tested them.

Some simplifications are clear:
- No more `map_partitions` needed for batching
- No more `meta` needed for `apply` or similar methods

Since we now set the `meta` of the `map_partitions` in the
`PandasTransformComponent` based on the component spec, the returned
dataframes are validated quite strictly. It does not allow any
additional columns.

The Pandas implementation can probably be improved further as I'm not
the biggest Pandas pro.
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.

2 participants