Closed denproc closed 1 year ago
Merging #334 (59fa153) into master (753030f) will increase coverage by
0.00%
. The diff coverage is96.66%
.
@@ Coverage Diff @@
## master #334 +/- ##
=======================================
Coverage 91.96% 91.97%
=======================================
Files 34 34
Lines 2490 2493 +3
=======================================
+ Hits 2290 2293 +3
Misses 200 200
Flag | Coverage Δ | |
---|---|---|
unittests | 91.97% <96.66%> (+<0.01%) |
:arrow_up: |
Flags with carried forward coverage won't be shown. Click here to find out more.
Impacted Files | Coverage Δ | |
---|---|---|
piq/psnr.py | 80.00% <0.00%> (ø) |
|
piq/functional/base.py | 92.10% <71.42%> (ø) |
|
piq/brisque.py | 99.00% <100.00%> (ø) |
|
piq/dss.py | 100.00% <100.00%> (ø) |
|
piq/fsim.py | 100.00% <100.00%> (ø) |
|
piq/functional/colour_conversion.py | 100.00% <100.00%> (ø) |
|
piq/functional/filters.py | 100.00% <100.00%> (ø) |
|
piq/gmsd.py | 100.00% <100.00%> (ø) |
|
piq/haarpsi.py | 100.00% <100.00%> (ø) |
|
piq/isc.py | 90.90% <100.00%> (ø) |
|
... and 7 more |
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication
@snk4tr @zakajd Ready for review
Closes #266 Addresses the second part of #227
Proposed Changes
_construct_filters
_lowpassfilter
. The filter is computed explicitly.fsim
to avoid transfer between devicesget_meshgrid
) is performed straight on target device and data type according to input tensor without redundant transfers between devicesto()
operation ingradient_map
.gitignore
Outcome of the Proposed Changes
cuda
-enabled computations for FSIM and FSIMc (visual comparison is atttached)Note
Other places to consider for additional assessment of leaks
piq/base.py
,fid.py
,perceptual.py
andpieapp.py
use.to()
for a various transfers. They are out of scope for current PR due to a different purpose of the transfer between devices/types.piq/functional/resize.py
could be refactored as well to get rid of redundant transfers. Added to #227vsi.py
has redundant mesh grid creation. Opened #335Appendix
Visual Comparison of CPU usage
htop
following #266Before
Branch: master
After
Branch: bug/cpu_usage
PyTorch Profiler Results. Top-8 operations.