-
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
Server test. Combined image and directory extractors using shared storage #3428
Server test. Combined image and directory extractors using shared storage #3428
Conversation
Please, merge develop. The PR shows extra changes. |
…o ms/test_for_fixed_issue_3123
Done. |
} | ||
|
||
# create task with server | ||
self._create_task(task, image_data) |
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 also check a number of images in the created task?
os.makedirs(main_path) | ||
main_images = ["people.jpeg", "street_1.jpeg", "street_2.jpeg", "street_3.jpeg"] | ||
for img in main_images: | ||
image = Image.new('RGB', size=(100, 50)) |
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.
I suppose we can create the image once before the loop
for img in main_images: | ||
image = Image.new('RGB', size=(100, 50)) | ||
image.save(osp.join(main_path, img), "JPEG") | ||
image.save(osp.join(main_path, "street.png"), "PNG") |
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 get file extension from image name (with os.path.splitext) and put the operator to the loop above?
os.makedirs(subdir_path) | ||
subdir_images = ["image_4.jpeg", "image_5.jpeg", "image_6.jpeg"] | ||
for img in subdir_images: | ||
image = Image.new('RGB', size=(100, 50)) |
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.
The same comment like above
@bsekachev all comments are resolved. |
Motivation and context
Test scenario #3123
Fixed in #3424
How has this been tested?
Checklist
develop
branchcvat-core, cvat-data and cvat-ui)
License
Feel free to contact the maintainers if that's a concern.