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

Improve inference export script #3071

Merged

Conversation

simonusher
Copy link
Contributor

@simonusher simonusher commented May 7, 2023

closes #3038

@simonusher simonusher marked this pull request as ready for review May 8, 2023 17:04
Copy link
Collaborator

@olliestanley olliestanley left a comment

Choose a reason for hiding this comment

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

Thanks for this PR, changes look good, I have left some minor comments and will run it locally to test soon

inference/server/export.py Outdated Show resolved Hide resolved
inference/server/export.py Show resolved Hide resolved
inference/server/export.py Outdated Show resolved Hide resolved
@simonusher
Copy link
Contributor Author

simonusher commented May 8, 2023

I'm glad to hear that. I've addressed your comments except for one. Please let me know if the performance is sufficient. I believe the relationship filters, as they are now, will use correlated subqueries so they might be suboptimal.
I'm not entirely sure how to test them properly at scale. Is there maybe a script that fills the development inference-db with dummy data?

@olliestanley
Copy link
Collaborator

I'm glad to hear that. I've addressed your comments except for one. Please let me know if the performance is sufficient. I believe the relationship filters, as they are now, will use correlated subqueries so they might be suboptimal. I'm not entirely sure how to test them properly at scale. Is there maybe a script that fills the development inference-db with dummy data?

There isn't a way of filling the inference DB with dummy data currently, this would be a useful addition though so I'll raise a new issue for it. There's some dummy data here which was used for filling the data collection backend DB, could maybe be reused

@olliestanley olliestanley enabled auto-merge (squash) May 8, 2023 18:20
@olliestanley olliestanley merged commit 75c8adc into LAION-AI:main May 8, 2023
1 check passed
@olliestanley
Copy link
Collaborator

Thank you for this PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve inference export script
2 participants