Skip to content

Commit

Permalink
correct error unzipping
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosuc3m committed Oct 3, 2024
1 parent 7304fdf commit ca3d60c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,9 @@ private void unzipTfWeights() throws IOException {
String source = descriptor.getWeights().gettAllSupportedWeightObjects().stream()
.filter(ww -> ww.getFramework().equals(EngineInfo.getBioimageioTfKey()))
.findFirst().get().getSource();
source = DownloadModel.getFileNameFromURLString(source);
try {
source = DownloadModel.getFileNameFromURLString(source);
} catch (Exception ex) {}
System.out.println("Unzipping model...");
unzippingConsumer.accept(0.);
ZipUtils.unzipFolder(this.modelsDir + File.separator + source, this.modelsDir,
Expand Down

0 comments on commit ca3d60c

Please sign in to comment.