Conversation
|
without_video_merge.log I'm also attaching the logs for unit-test execution before and after merging the classes. |
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:notifications@github.com]
Sent: Thursday, June 20, 2019 2:59 AM
To: IntelLabs/vdms <vdms@noreply.github.com>
Cc: Lantz, Philip <philip.lantz@intel.com>; Review requested <review_requested@noreply.github.com>
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. |
luisremis
left a comment
There was a problem hiding this comment.
All comments addressed, looks good to go to me!
| 'src/vcl/Image.cc', | ||
| 'src/vcl/TDBImage.cc', | ||
| 'src/vcl/Video.cc', | ||
| 'src/vcl/VideoData.cc', |
There was a problem hiding this comment.
Did you not face the VideoData test problem here?
There was a problem hiding this comment.
Nope, because video testing is more on interface methods only. We can add more testing in the future of course.
| '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.
The commit message here still has a commit Id
vishakha041
left a comment
There was a problem hiding this comment.
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 <mahircan.guel@intel.com>
This patch consolidates ImageData and Image classes into the Image class, and removes ImageData class. Signed-off-by: Mahircan Guel <mahircan.guel@intel.com>
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 <mahircan.guel@intel.com>
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 <mahircan.guel@intel.com>
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 <mahircan.guel@intel.com>
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 <mahircan.guel@intel.com>
b0398bb to
3b790be
Compare
|
Fixed the last commit message. Good to go! |
* Add files to update pypi package
No description provided.