Open mikegerber opened 10 months ago
saved_model_2020_01_16 is the variant with the 4 models saved_model_2021_03_09 is the variant with one model only I tested 0.1.0 (installed via pip, from PyPI)
A workaround:
mkdir tmp1234
mv saved_model_2021_03_09 tmp1234
mv tmp1234 saved_model_2021_03_09
This results in this directory structure:
% tree -d saved_model_2021_03_09
saved_model_2021_03_09
└── saved_model_2021_03_09
├── assets
└── variables
which makes the above call work.
I see two issues here:
2020_01_16:
# WORKS
unzip saved_model_2020_01_16.zip
sbb_binarize --model-dir saved_model_2020_01_16 test.tif out.tif
2021_03_09:
# FAILS
unzip saved_model_2021_03_09.zip
sbb_binarize --model-dir saved_model_2021_03_09 test.tif out.tif
# WORKAROUND
unzip saved_model_2021_03_09.zip
# ADDITIONAL STEP REQUIRED HERE, compared to 2020_01_16:
mkdir some-topdir; mv saved_model_2021_03_09 some-topdir
sbb_binarize --model-dir some-topdir test.tif out.tif
I hope this makes the issue even clearer. The zips are not packed in the same way. And the README does not seem to give the information required to perform the workaround.
The "problem zip" saved_model_2021_03_09.zip is also the one at the top of the Models section. I would thus recommend:
This is with 0.1.0. Haven't tested master but that branch doesn't seem to have any changes related to this problem.
(2020-01-16 works)