From 90abbc000667573e1db0e8b035b598048e198c76 Mon Sep 17 00:00:00 2001 From: Avery Lamp Date: Mon, 26 Aug 2024 14:20:57 -0700 Subject: [PATCH] README Update with && instead of & The current command cd segment-anything-2 & pip install -e . should use && instead of &. Using && ensures that the pip install command only runs if the cd command is successful. The & operator runs both commands in parallel, which could lead to issues if the directory change isn't completed before the installation starts. This change improves the reliability of the script by preventing potential errors from occurring if the cd command fails. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bc13c1c9..390a543d 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ SAM 2 needs to be installed first before use. The code requires `python>=3.10`, ```bash git clone https://github.com/facebookresearch/segment-anything-2.git -cd segment-anything-2 & pip install -e . +cd segment-anything-2 && pip install -e . ``` If you are installing on Windows, it's strongly recommended to use [Windows Subsystem for Linux (WSL)](https://learn.microsoft.com/en-us/windows/wsl/install) with Ubuntu.