Spaces:
Sleeping
Sleeping
File size: 1,653 Bytes
5bf7ea9 98a3af2 5bf7ea9 13a86c1 5bf7ea9 98a3af2 13a86c1 98a3af2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
---
title: Natsar Demo
emoji: "π"
colorFrom: red
colorTo: red
sdk: docker
pinned: false
hardware: gpu-t4-small
---
# Introduction
Computer Vision object detection for National Search and Rescue (NATSAR)
## Prerequisites
1. Install conda (environment management) using terminal on VScode
- for mac user [https://www.anaconda.com/docs/getting-started/miniconda/main]
- for window user [https://www.anaconda.com/docs/getting-started/miniconda/main]
2. Create env from conda by using the following command
`conda create --name natsar python=3.11`
it will create `natsar` (can be diffent name) environtment for this project.
and it is also a good practice to create separate environtment for specific project.
3. Activate the environment
`conda activate natsar`
4. Install PDM (package and dependency manager) to avoid conflict dependency
`pip install pdm`
sometimes `conda` doesn't support some libraries, then `pip` will be allowed to do. BUT use pip within the `natsar` env.
5. Intstall packages and dependencies
hello
`pdm install`
## Running the project locally
after install dependencies, make sure to activate the environment
1. go to folder src using `cd src` on terminal
2. run `app.py` file using `pdm run streamlit run app.py`
\*\*if cloning from huggingface it might need to mount large file with git lfs
use `pip install git-lfs` then `git lfs install`
then `git lfs pull` to pull the files to local and `pdm run streamlit run app.py` to run
## Build and Test
- Main app.py file to be placed at root of NATSAR-DEMO repo.
- The app to point to different models that sit within the nominated sub-folders
|