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

Add future annotations and ruff flag #43

Merged
merged 13 commits into from
Mar 6, 2024
Merged

Conversation

justincdavis
Copy link
Contributor

Solves the issues presented in #42, allows running datadreamer on older Python versions such as 3.8

closes #42

I could extend this to utilize only "modern" types by also changing the List/Tuple based type hints to list/tuple based etc.

HonzaCuhel and others added 10 commits March 2, 2024 11:52
* Add quantization of Mistral

* Add quantization flag and add 8bit quantization

* Better printing

* Update quantization

* Add pipeline

* Update Mistral LM generation

* Update LM quantization

* Add unittests & update pipeline & prompt generation

* Correct tests

* Update version of Mistral, update docstrings & README.md

* Format code
* feature: add batched prompt generation

* feature: add --batch_size_prompt argument

* test: add simple argument test

* feature: add batched prompt generation speed measuring

* refactor: remove redundant print

* fix: change default batch_size_prompt to 64

* style: black formatting

* refactor: typo
* feature: add batched image generation

* test: modify image generation tests

* fix: modify examples

* fix: prompt objects weights

* docs: update args description

* docs: update prompt generation docstrings

* [Automated] Updated coverage badge

---------

Co-authored-by: GitHub Actions <[email protected]>
* Add batch annotation

* Update docs & add test & fix batched annotation

* Change default batch annotation

* Fix annotation tests

* Fix tests

* [Automated] Updated coverage badge

* Update annotation example & docstrings

* Fix formatting

* Fix docstring

* [Automated] Updated coverage badge

* refactor: replace annotate() with annotate_batch()

* feature: replace owlv2 resize

---------

Co-authored-by: Jan Cuhel <[email protected]>
Co-authored-by: GitHub Actions <[email protected]>
Co-authored-by: Nikita Sokovnin <[email protected]>
* feature: add SDXL-Lightning image generator

* fix: minor example fix

* feature: add prompt weighting to sdxl-lightning

* docs: update README

* test: add sdxl-lightning tests

* [Automated] Updated coverage badge

---------

Co-authored-by: GitHub Actions <[email protected]>
* Added padding & truncation to the processing

* Format code

* fix: change labels dtype to int64

* format: black

---------

Co-authored-by: Jan Cuhel <[email protected]>
Co-authored-by: Nikita Sokovnin <[email protected]>
Copy link
Contributor

@HonzaCuhel HonzaCuhel left a comment

Choose a reason for hiding this comment

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

LGTM

@sokovninn sokovninn changed the base branch from main to dev March 6, 2024 10:58
@sokovninn sokovninn changed the base branch from dev to main March 6, 2024 10:59
@sokovninn
Copy link
Member

Thanks, @justincdavis, for your contribution! Feel free to submit a separate PR for list/tuple renaming. If you have any other ideas for improvements, you can open an issue where we can discuss them. Merging to dev.

@sokovninn sokovninn changed the base branch from main to dev March 6, 2024 21:39
@sokovninn sokovninn merged commit 18aa541 into luxonis:dev Mar 6, 2024
7 of 8 checks passed
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.

Object not subscriptable
3 participants