Segment-Anything-finetune
No description available.
File Explorer
Download Latest Version (.zip)- 00000001.jpg
- .gitkeep
- .gitkeep
- .gitkeep
- learn_mask.py
- scores_debug.py
- __init__.py
- common.py
- image_encoder.py
- mask_decoder.py
- prompt_encoder.py
- sam.py
- transformer.py
- __init__.py
- amg.py
- onnx.py
- transforms.py
- __init__.py
- automatic_mask_generator.py
- build_sam.py
- predictor.py
- convert_to_white_masks.py
- save_json.py
- save_labels.py
- .gitignore
- demo_app.py
- LICENSE
- README.md
- requirements.txt
- sam_eval.py
- sam_finetune.py
- sam_test.py
# Installation Guide
1. Get the code
git clone https://github.com/pg56714/Segment-Anything-finetune
Downloads the entire project code from GitHub to your computer.
cd Segment-Anything-finetune
Moves into the project folder you just downloaded.
2. Official Install Script
Easy RecommendedPrerequisites
- Python 3 Python is required to use pip.
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
Installs the package published on PyPI directly โ no need to clone the source.
After installing, open a new terminal and run the program's version command (e.g. --version) to confirm it worked.
Pulled directly from this repo's README.
3. Python
EasyPrerequisites
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
Installs the package published on PyPI directly โ no need to clone the source.
pip install -r requirements.txt
Installs the Python libraries listed in requirements.txt (or similar).
If it runs without errors and prints output in the terminal, it worked.
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
