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

Server test. Combined image and directory extractors using shared storage #3428

Merged
merged 7 commits into from
Jul 20, 2021

Conversation

MashaSS
Copy link
Contributor

@MashaSS MashaSS commented Jul 18, 2021

Motivation and context

Test scenario #3123
Fixed in #3424

How has this been tested?

Checklist

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.
  • I have updated the license header for each file (see an example below)
# Copyright (C) 2021 Intel Corporation
#
# SPDX-License-Identifier: MIT

@MashaSS MashaSS requested a review from nmanovic as a code owner July 18, 2021 19:51
@bsekachev bsekachev self-requested a review July 19, 2021 08:52
@bsekachev
Copy link
Member

Please, merge develop. The PR shows extra changes.

@MashaSS
Copy link
Contributor Author

MashaSS commented Jul 19, 2021

Please, merge develop. The PR shows extra changes.

Done.

}

# create task with server
self._create_task(task, image_data)
Copy link
Member

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))
Copy link
Member

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")
Copy link
Member

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))
Copy link
Member

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

@MashaSS
Copy link
Contributor Author

MashaSS commented Jul 19, 2021

@bsekachev all comments are resolved.

@bsekachev bsekachev merged commit bab3366 into cvat-ai:develop Jul 20, 2021
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.

3 participants