Skip to content

Commit

Permalink
Switch default backend for resizing (#263)
Browse files Browse the repository at this point in the history
* mirror changes of eo-learn in 1.5.0

* adjust test results
  • Loading branch information
zigaLuksic authored Aug 18, 2023
1 parent 2a0664e commit 7e65b54
Show file tree
Hide file tree
Showing 3 changed files with 163 additions and 163 deletions.
2 changes: 1 addition & 1 deletion eogrow/pipelines/import_tiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class ResizeSchema(BaseSchema):
description="Parameter to be applied to the height in combination with the resize_type."
)
method: ResizeMethod = ResizeMethod.LINEAR
library: ResizeLib = ResizeLib.PIL
library: ResizeLib = ResizeLib.CV2


class ImportTiffPipeline(Pipeline):
Expand Down
162 changes: 81 additions & 81 deletions tests/test_stats/import_tiff/import_tiff_resized_new_size.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
1
],
"basic_stats": {
"max": 9413.34473,
"mean": 4998.18262,
"median": 5000.06641,
"min": 608.74774
"max": 11902.97266,
"mean": 4997.88916,
"median": 4992.77832,
"min": -1943.75562
},
"counts": {
"infinite": 0,
Expand All @@ -21,74 +21,74 @@
"dtype": "float32",
"histogram": {
"counts": [
282,
5891,
30400,
64193,
63725,
29625,
5618,
266
1224,
16504,
35676,
46234,
46205,
35834,
16940,
1383
],
"edges": [
608.74774,
1709.32239,
2809.89697,
3910.47168,
5011.04639,
6111.62109,
7212.19531,
8312.77051,
9413.34473
-1943.75562,
-212.91458,
1517.92651,
3248.76758,
4979.6084,
6710.44971,
8441.29102,
10172.13184,
11902.97266
]
},
"random_values": [
{
"position": [
451,
198,
199,
329,
0
],
"value": 5423.93701
"value": 5992.33789
},
{
"position": [
373,
231,
226,
243,
0
],
"value": 5031.11768
"value": 5073.72754
},
{
"position": [
139,
267,
468,
174,
0
],
"value": 4253.40381
"value": 3264.79565
},
{
"position": [
106,
114,
432,
375,
0
],
"value": 4387.13135
"value": 3574.1582
},
{
"position": [
422,
187,
7,
371,
0
],
"value": 6250.479
"value": 7794.94092
}
],
"subsample_basic_stats": {
"max": 9093.90137,
"mean": 4989.74463,
"median": 4999.97363,
"min": 883.56158
"max": 11439.16504,
"mean": 4973.53125,
"median": 4963.71143,
"min": -1879.43591
}
}
}
Expand All @@ -103,86 +103,86 @@
1
],
"basic_stats": {
"max": 9020.87207,
"mean": 5000.07422,
"median": 4992.9043,
"min": 624.94806
"max": 12026.18848,
"mean": 4999.41846,
"median": 4992.6084,
"min": -1572.05933
},
"counts": {
"infinite": 0,
"nan": 166000
"nan": 165600
},
"dtype": "float32",
"histogram": {
"counts": [
49,
786,
4390,
9865,
10871,
6321,
1570,
148
478,
3394,
6535,
7951,
7627,
5704,
2557,
154
],
"edges": [
624.94806,
1674.4386,
2723.92896,
3773.41968,
4822.91016,
5872.40039,
6921.89111,
7971.38135,
9020.87207
-1572.05933,
127.72165,
1827.50269,
3527.28369,
5227.06445,
6926.8457,
8626.62695,
10326.40723,
12026.18848
]
},
"random_values": [
{
"position": [
423,
135,
424,
201,
0
],
"value": 5422.33984
"value": 5981.91846
},
{
"position": [
486,
128,
492,
249,
0
],
"value": 5027.07666
"value": 5071.62939
},
{
"position": [
439,
86,
422,
385,
0
],
"value": 4258.89258
"value": 3267.71582
},
{
"position": [
459,
106,
419,
368,
0
],
"value": 4393.56689
"value": 3564.71973
},
{
"position": [
453,
250,
489,
83,
0
],
"value": 6253.25537
"value": 7798.09766
}
],
"subsample_basic_stats": {
"max": 8293.12402,
"mean": 4965.5835,
"median": 4974.97461,
"min": 1219.07568
"max": 11043.74609,
"mean": 5021.5376,
"median": 4970.15869,
"min": -1362.6886
}
}
}
Expand Down
Loading

0 comments on commit 7e65b54

Please sign in to comment.