Skip to content

Commit

Permalink
correct new name of file
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosuc3m committed Oct 24, 2024
1 parent 5001acd commit 363fe2d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ public boolean checkModelWeightsInstalled() {
if (!EfficientViTSamJ.getListOfSupportedEfficientViTSAM().contains(modelType))
throw new IllegalArgumentException("The provided model is not one of the supported EfficientViT models: "
+ EfficientViTSamJ.getListOfSupportedEfficientViTSAM());
File weightsFile = Paths.get(this.path, "envs", EVITSAM_ENV_NAME, EVITSAM_NAME, "weights", modelType + ".pt").toFile();
File weightsFile = Paths.get(this.path, "envs", EVITSAM_ENV_NAME, EVITSAM_NAME, "weights", "efficientvit_sam_" + modelType + ".pt").toFile();
if (!weightsFile.isFile()) return false;
if (weightsFile.length() != EFFICIENTVITSAM_BYTE_SIZES_MAP.get(modelType)) return false;
return true;
Expand Down

0 comments on commit 363fe2d

Please sign in to comment.