diff --git a/src/main/java/ai/nets/samj/EfficientSamJ.java b/src/main/java/ai/nets/samj/EfficientSamJ.java index bd83aa2..cb5eb7a 100644 --- a/src/main/java/ai/nets/samj/EfficientSamJ.java +++ b/src/main/java/ai/nets/samj/EfficientSamJ.java @@ -159,7 +159,7 @@ else if (task.status == TaskStatus.CRASHED) } /** - * Create an EfficientSAMJ instance that allows to use EfficientSAM on an image. + * Create an EfficientSamJ instance that allows to use EfficientSAM on an image. * This method encodes the image provided, so depending on the computer * it might take some time * @@ -169,7 +169,7 @@ else if (task.status == TaskStatus.CRASHED) * environment manager that contians all the paths to the environments needed, Python executables and model weights * @param image * the image where SAM is going to be run on - * @return an instance of {@link EfficientSAMJ} that allows running EfficientSAM on an image + * @return an instance of {@link EfficientSamJ} that allows running EfficientSAM on an image * @param debugPrinter * functional interface to redirect the Python process Appose text log and ouptut to be redirected anywhere * @param printPythonCode @@ -195,7 +195,7 @@ else if (task.status == TaskStatus.CRASHED) } /** - * Create an EfficientSAMJ instance that allows to use EfficientSAM on an image. + * Create an EfficientSamJ instance that allows to use EfficientSAM on an image. * This method encodes the image provided, so depending on the computer and on the model * it might take some time. * @@ -206,7 +206,7 @@ else if (task.status == TaskStatus.CRASHED) * environment manager that contians all the paths to the environments needed, Python executables and model weights * @param image * the image where SAM is going to be run on - * @return an instance of {@link EfficientSAMJ} that allows running EfficientSAM on an image + * @return an instance of {@link EfficientSamJ} that allows running EfficientSAM on an image * with the image already encoded * @throws IOException if any of the files to create a Python process is missing * @throws RuntimeException if there is any error running the Python code diff --git a/src/main/java/ai/nets/samj/EfficientViTSamJ.java b/src/main/java/ai/nets/samj/EfficientViTSamJ.java index 10bb6b9..cd87829 100644 --- a/src/main/java/ai/nets/samj/EfficientViTSamJ.java +++ b/src/main/java/ai/nets/samj/EfficientViTSamJ.java @@ -192,7 +192,7 @@ else if (task.status == TaskStatus.CRASHED) } /** - * Create an EfficientViTSAMJ instance that allows to use EfficientViTSAM on an image. + * Create an EfficientViTSamJ instance that allows to use EfficientViTSAM on an image. * This method encodes the image provided, so depending on the computer and on the model * it might take some time * @@ -208,7 +208,7 @@ else if (task.status == TaskStatus.CRASHED) * functional interface to redirect the Python process Appose text log and ouptut to be redirected anywhere * @param printPythonCode * whether to print the Python code that is going to be executed on the Python process or not - * @return an instance of {@link EfficientViTSAMJ} that allows running EfficienTViTSAM on an image + * @return an instance of {@link EfficientViTSamJ} that allows running EfficienTViTSAM on an image * with the image already encoded * @throws IOException if any of the files to create a Python process is missing * @throws RuntimeException if there is any error running the Python code @@ -231,7 +231,7 @@ else if (task.status == TaskStatus.CRASHED) } /** - * Create an EfficientViTSAMJ instance that allows to use EfficientViTSAM on an image. + * Create an EfficientViTSamJ instance that allows to use EfficientViTSAM on an image. * This method encodes the image provided, so depending on the computer and on the model * it might take some time * @@ -243,7 +243,7 @@ else if (task.status == TaskStatus.CRASHED) * environment manager that contians all the paths to the environments needed, Python executables and model weights * @param image * the image where SAM is going to be run on - * @return an instance of {@link EfficientViTSAMJ} that allows running EfficienTViTSAM on an image + * @return an instance of {@link EfficientViTSamJ} that allows running EfficienTViTSAM on an image * @throws IOException if any of the files to create a Python process is missing * @throws RuntimeException if there is any error running the Python code * @throws InterruptedException if the process is interrupted @@ -263,7 +263,7 @@ else if (task.status == TaskStatus.CRASHED) } /** - * Create an EfficientViTSAMJ instance that allows to use EfficientViTSAM on an image. + * Create an EfficientViTSamJ instance that allows to use EfficientViTSAM on an image. * This method encodes the image provided, so depending on the computer and on the model * it might take some time. * @@ -279,7 +279,7 @@ else if (task.status == TaskStatus.CRASHED) * functional interface to redirect the Python process Appose text log and ouptut to be redirected anywhere * @param printPythonCode * whether to print the Python code that is going to be executed on the Python process or not - * @return an instance of {@link EfficientViTSAMJ} that allows running EfficienTViTSAM on an image + * @return an instance of {@link EfficientViTSamJ} that allows running EfficienTViTSAM on an image * with the image already encoded * @throws IOException if any of the files to create a Python process is missing * @throws RuntimeException if there is any error running the Python code @@ -294,7 +294,7 @@ else if (task.status == TaskStatus.CRASHED) } /** - * Create an EfficientViTSAMJ instance that allows to use EfficientViTSAM on an image. + * Create an EfficientViTSamJ instance that allows to use EfficientViTSAM on an image. * This method encodes the image provided, so depending on the computer and on the model * it might take some time. * @@ -306,11 +306,7 @@ else if (task.status == TaskStatus.CRASHED) * environment manager that contians all the paths to the environments needed, Python executables and model weights * @param image * the image where SAM is going to be run on - * @param debugPrinter - * functional interface to redirect the Python process Appose text log and ouptut to be redirected anywhere - * @param printPythonCode - * whether to print the Python code that is going to be executed on the Python process or not - * @return an instance of {@link EfficientViTSAMJ} that allows running EfficienTViTSAM on an image + * @return an instance of {@link EfficientViTSamJ} that allows running EfficienTViTSAM on an image * with the image already encoded * @throws IOException if any of the files to create a Python process is missing * @throws RuntimeException if there is any error running the Python code diff --git a/src/main/java/ai/nets/samj/SamEnvManager.java b/src/main/java/ai/nets/samj/SamEnvManager.java index 59ba825..a7406c1 100644 --- a/src/main/java/ai/nets/samj/SamEnvManager.java +++ b/src/main/java/ai/nets/samj/SamEnvManager.java @@ -400,8 +400,7 @@ public void downloadSAMWeigths(boolean force) { /** * Install the weights of EfficientSAM Small. - * @param force - * whether to overwrite the weights file if it already exists + * Does not overwrite the weights file if it already exists. */ public void downloadESAMSmallWeights() throws IOException, InterruptedException { downloadESAMSmallWeights(false); @@ -555,8 +554,6 @@ public void installEfficientSAMPython() throws IOException, InterruptedException * * @throws IOException if there is any file error installing any of the requirements * @throws InterruptedException if the installation is interrupted - * @throws ArchiveException if there is any downloading Micromamba - * @throws URISyntaxException if there is any error witht the URL to download micromamba * @throws MambaInstallException if there is any error installing micromamba */ public void installEfficientSAMPython(boolean force) throws IOException, InterruptedException, MambaInstallException { @@ -623,8 +620,6 @@ public void installEfficientViTSAMPython() throws IOException, InterruptedExcept * * @throws IOException if there is any file error installing any of the requirements * @throws InterruptedException if the installation is interrupted - * @throws ArchiveException if there is any downloading Micromamba - * @throws URISyntaxException if there is any error witht the URL to download micromamba * @throws MambaInstallException if there is any error installing micromamba */ public void installEfficientViTSAMPython(boolean force) throws IOException, InterruptedException, MambaInstallException { @@ -815,9 +810,8 @@ public void installSAMPackage(boolean force) throws IOException, InterruptedExce } /** - * Install the Python package to run EfficientSAM - * @param force - * if the package already exists, whether to overwrite it or not + * Install the Python package to run EfficientSAM. + * Does not overwrite the package if it already exists. * @throws IOException if there is any file creation related issue * @throws InterruptedException if the package installation is interrupted * @throws MambaInstallException if there is any error with the Mamba installation