-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Az/chunk size #1315
Az/chunk size #1315
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -0,0 +1,18 @@ | |||
# Generated by Django 2.2.10 on 2020-03-24 12:22 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we splash the migration?
cvat/apps/engine/task.py
Outdated
if isinstance(compressed_chunk_writer, ZipCompressedChunkWriter): | ||
w, h = extractor.get_image_size() | ||
area = h * w | ||
if area <= 1920 * 1080: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it make sense to have for small resolutions bigger chunk? Something like max(1920 * 1080 * 18 // area * 2, 2)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe better to have clip(1920 * 1080 * 18 // area * 2, 2, 72)
@@ -252,25 +253,33 @@ def update_progress(progress): | |||
compressed_chunk_writer = compressed_chunk_writer_class(db_data.image_quality) | |||
original_chunk_writer = original_chunk_writer_class(100) | |||
|
|||
# calculate chunk size if it isn't specified | |||
if db_data.chunk_size is None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@azhavoro , will it be critical for current video decoder if somebody specify a wrong chunk_size (too small or even)?
@@ -52,7 +52,27 @@ const webConfig = { | |||
sourceType: 'unambiguous', | |||
}, | |||
}, | |||
}], | |||
}, { | |||
test: /3rdparty\/.*\.worker\.js$/, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@azhavoro , why the change is necessary for the patch?
No description provided.