-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from rootvisionai/feature/faster_processing
Feature/faster processing
- Loading branch information
Showing
8 changed files
with
368 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,3 @@ | |
*.drawio | ||
/dev_gitignored/ | ||
!frontend_python/make_request_local.py | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,14 +20,14 @@ pip install git+https://github.com/facebookresearch/segment-anything.git | |
or clone the repository locally and install with | ||
|
||
``` | ||
git clone [email protected]:facebookresearch/segment-anything.git | ||
git clone [email protected]:rootvisionai/segment-anything.git | ||
cd segment-anything; pip install -e . | ||
``` | ||
|
||
The following dependencies are necessary for the FEWSAM: | ||
|
||
``` | ||
pip install opencv-python PyYAML PySimpleGUI kmeans-pytorch | ||
pip install opencv-python PyYAML PySimpleGUI | ||
``` | ||
|
||
Now download the model checkpoints: | ||
|
@@ -36,15 +36,27 @@ More accurate <<< [VIT-H](https://dl.fbaipublicfiles.com/segment_anything/sam_vi | |
| [VIT-L](https://dl.fbaipublicfiles.com/segment_anything/sam_vit_l_0b3195.pth) | ||
| [VIT-B](https://dl.fbaipublicfiles.com/segment_anything/sam_vit_b_01ec64.pth) >>> Faster | ||
|
||
## RUN | ||
## START SERVER | ||
|
||
Before you start the application, create a folder to put your | ||
support images that will be used to learn from, then create a | ||
folder to put your query images that are going to be labeled. | ||
Put the relative path to the folders to support_dir and query_dir in config.yml. | ||
Then, let the magic begin ... | ||
|
||
#### To create request json that will be sent to server | ||
```commandline | ||
python interface.py | ||
``` | ||
then adjust make_request.py according to your images and paths | ||
|
||
Finally, run the server ... | ||
``` | ||
python main.py | ||
python backend/server.py | ||
``` | ||
|
||
and make request while server.py is running | ||
```commandline | ||
python make_request.py | ||
``` | ||
|
||
## DOCKERIZATION | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.