-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Download images only when not present on disk and print warning messages when converting unsupported pixel format. #3625
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3625 +/- ##
==========================================
+ Coverage 72.78% 72.78% +<.01%
==========================================
Files 808 808
Lines 145548 145588 +40
Branches 16248 16250 +2
==========================================
+ Hits 105931 105961 +30
- Misses 35195 35203 +8
- Partials 4422 4424 +2
|
…en converting unsupported pixel format.
1f299ea
to
408f4c1
Compare
docs/samples/Microsoft.ML.Samples/Dynamic/Transforms/ImageAnalytics/ConvertToImage.cs
Outdated
Show resolved
Hide resolved
Not your code, but there's something a bit odd about it that it assumes that any exception must be due to teh file not being found. #Closed Refers to: src/Microsoft.ML.ImageAnalytics/ImageLoader.cs:208 in 133fbe1. [](commit_id = 133fbe1, deletion_comment = False) |
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.
Looks good, after @TomFinley's comments are addressed.
test/Microsoft.ML.Tests/ScenariosWithDirectInstantiation/TensorflowTests.cs
Show resolved
Hide resolved
Seems like the comment above this line explains why the original author wrote like. In reply to: 488380679 [](ancestors = 488380679) Refers to: src/Microsoft.ML.ImageAnalytics/ImageLoader.cs:208 in 133fbe1. [](commit_id = 133fbe1, deletion_comment = False) |
Spoke offline and we decided the to remove try catch altogether. Right now docs do say on file not found it will throw FileNotFoundException instead of ArgumentException as before.. In reply to: 488396420 [](ancestors = 488396420,488380679) Refers to: src/Microsoft.ML.ImageAnalytics/ImageLoader.cs:208 in 133fbe1. [](commit_id = 133fbe1, deletion_comment = False) |
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.
Thanks @codemzs !
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.
fixes #3631
fixes #3638