Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[doc] Check and raise an error if the user is running Python from the…
… parent directory of the sam2 repo If the user has "sam2/sam2" in their path, they are likey importing the repo itself as "sam2" rather than importing the "sam2" python package (i.e. "sam2/sam2" directory). This typically happens because the user is running Python from the parent directory that contains the sam2 repo they cloned. In general, the user should not run Python from the parent dir when the repo is cloned into (same is true for e.g. Numpy repo that contains names like `numpy/numpy` where the module and the repo have the same name.
- Loading branch information