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

Edr/sql db #22

Merged
merged 39 commits into from
Dec 15, 2023
Merged

Edr/sql db #22

merged 39 commits into from
Dec 15, 2023

Conversation

evanderiel
Copy link
Collaborator

No description provided.

aana/models/db/media.py Outdated Show resolved Hide resolved
aana/models/db/caption.py Outdated Show resolved Hide resolved
aana/utils/db.py Outdated Show resolved Hide resolved
aana/utils/db.py Outdated Show resolved Hide resolved
Copy link
Contributor

@movchan74 movchan74 left a comment

Choose a reason for hiding this comment

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

I left some comments with questions and changes.
I would also like to know how you see it being integrated with the pipeline.

README.md Outdated Show resolved Hide resolved
Copy link
Contributor

@movchan74 movchan74 left a comment

Choose a reason for hiding this comment

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

Need to be merged with the main because it has changes related to the PR. For example, I added generate_frames_decord that would need frame_ids as output as well.

aana/utils/db.py Outdated Show resolved Hide resolved
aana/utils/db.py Show resolved Hide resolved
aana/utils/video.py Outdated Show resolved Hide resolved
aana/models/db/media.py Outdated Show resolved Hide resolved
aana/configs/pipeline.py Show resolved Hide resolved
There appears to be a problem with how SQLAlchemy's type annotations
work. Column[int] is incompatible with int, unless you install
sqlalchemy-stubs, which breaks the type annotations for reference()
fields. But you can manually cast things to int (id_type), so
we do that.
rename SqlAlchemy models to ...Entity
Copy link
Contributor

@movchan74 movchan74 left a comment

Choose a reason for hiding this comment

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

Noticed a few issues.
Also, I think I figured out the problem with tests, please check if it solves the issue.
And run the ruff check, there are a few problems it reports.

aana/models/db/base.py Outdated Show resolved Hide resolved
.vscode/settings.json Outdated Show resolved Hide resolved
aana/models/db/video.py Outdated Show resolved Hide resolved
aana/api/app.py Outdated Show resolved Hide resolved
@evanderiel evanderiel merged commit 302e313 into main Dec 15, 2023
1 check passed
@evanderiel evanderiel deleted the edr/sql_db branch May 22, 2024 07:47
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