-
Notifications
You must be signed in to change notification settings - Fork 33
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
Remove api layers #108
Remove api layers #108
Conversation
without_video_merge.log I'm also attaching the logs for unit-test execution before and after merging the classes. |
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! Philip we will take a look and we are good to merge.
All tests passing in my system.
704db7e
to
df9177e
Compare
Thanks. I suggest you wait until Vishakha and I have finished our reviews before you make any changes.
Philip
From: Mahircan Gül [mailto:[email protected]]
Sent: Thursday, June 20, 2019 2:59 AM
To: IntelLabs/vdms <[email protected]>
Cc: Lantz, Philip <[email protected]>; Review requested <[email protected]>
Subject: Re: [IntelLabs/vdms] Remove api layers (#108)
The commit message for commit e8cd292<e8cd292> mentions commit ea80b48<ea80b48>, which has changed (and will presumably change again). Perhaps it would be better to remove the commit id from the message, and say "a prior commit".
Agreed, I'll edit it
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub<#108?email_source=notifications&email_token=AI2SLBADI43QYMX6OP2K2LDP3NIGNA5CNFSM4HODFKRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYE542Q#issuecomment-503963242>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AI2SLBECNWK5Z3JWSL4BWJDP3NIGNANCNFSM4HODFKRA>.
|
Are these all the latest commits or are there pending changes based on Luis/Philip's comments? Just want to make sure I review the latest code. Thanks. |
I haven't done the changes pointed out by Luis/Philip yet. Since those are rather small changes, the code won't change drastically once the changes are applied. I'd say it's good to go with the review. Thanks |
df9177e
to
b0398bb
Compare
Vishakha and I had both commented that any API changes to the Image class should be separate from the Image/ImageData merge. But I had missed the fact that the body of the ImageData constructor was incorporated into Image as part of the merge and that the ImageData constructor already supported deep/shallow copy, so that capability naturally gets pulled in to Image as part of the merge. |
I can't respond to this directly for some reason: #108 (comment) We will do a separate patch for that, not really a good reason not to other than video and images are high priority now. I will remove the separation on the feature vector implementation later and also add fixes that I have in my local branches as well. |
I don't think github will send an email if you update the branch here. So please let us know whenever you are done so we can approve the PR. It should be good since you have applied all the changes. |
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.
All comments addressed, looks good to go to me!
@@ -67,7 +67,6 @@ def buildServer(env): | |||
'src/vcl/Image.cc', | |||
'src/vcl/TDBImage.cc', | |||
'src/vcl/Video.cc', | |||
'src/vcl/VideoData.cc', |
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.
Did you not face the VideoData test problem here?
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.
Nope, because video testing is more on interface methods only. We can add more testing in the future of course.
@@ -36,7 +36,6 @@ test_sources = ['main.cc', | |||
'unit_tests/TDBImage_test.cc', | |||
'unit_tests/Image_test.cc', | |||
'unit_tests/Video_test.cc', | |||
'unit_tests/VideoData_test.cc', |
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 commit message here still has a commit Id
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.
Good sans two minor things. It would be nice to separate out operations next.
Unit test for ImageData class is removed, as the class itself will be refactored and merged into the Image class. Signed-off-by: mahircg <[email protected]>
This patch consolidates ImageData and Image classes into the Image class, and removes ImageData class. Signed-off-by: Mahircan Guel <[email protected]>
Currently, move constructor of Image class calls the copy-constructor. This causes creating redundant copies of move constructor's rhs argument, particularly for _operations vector and TDBImage object. This patch eliminates copying by calling std::move on operations, and assigning _tdb pointer without copying the content. Signed-off-by: mahircg <[email protected]>
ImageData and Image classes are merged into a single class in a prior commit. Similarly, this patch moves the tests from ImageData_test class to Image_test class. Number of total tests are reduced from 60 (#ImageClass_test + #Image_test) to 53. This is due to duplicate tests that are removed. Below is a list of tests that are removed, and the tests they're replaced with. ====================================================== | Removed | Replaced with | ====================================================== |ImageData_test | Image_test | ------------------------------------------------------ |GetImageIDandImageFormat | GetMatFromTDB | |GetImageDimensions | GetImageDimensions | |GetEncodedBuffer | EncodedImage | |CreateUnique | CreateNamePNG | ====================================================== The remaining 3 tests had the same name in both files, so they're not shown in the list. Signed-off-by: mahircg <[email protected]>
VideoData class was used as a wrapper around Video class which was maintained in a seperate repository, but not any longer. Since Video class is part of the VDMS codebase, abstraction layer provided by VideoData is redundant. This patch combines VideoData and Video classes into the Video class to remove the interface layer in between. Signed-off-by: mahircg <[email protected]>
Since VideoData and Video classes are merged into a single class in a prior commit, testing a single module by two different unit tests is redundant. This patch moves the tests from VideoData_test class into Video_test class. Unit tests of Video class are either complementary or duplicate across the two test classes. Thus, the tests are mainly moved from VideoData_test to Video_test. Signed-off-by: mahircg <[email protected]>
b0398bb
to
3b790be
Compare
Fixed the last commit message. Good to go! |
* Add files to update pypi package
No description provided.