Skip to content

Feature : Yolo v8 Seg Integration #242

Feature : Yolo v8 Seg Integration

Feature : Yolo v8 Seg Integration #242

Workflow file for this run

name: Check Build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9.20
- name: Remove solaris
run: sudo rm -rf ./docker ./weights
- name: Clone Ramp
run: git clone https://github.com/kshitijrajsharma/ramp-code-fAIr.git ramp-code
- name: Install gdown
run: pip install gdown
- name: Download Basemodel
run: gdown --fuzzy https://drive.google.com/file/d/1YQsY61S_rGfJ_f6kLQq4ouYE2l3iRe1k/view?usp=sharing
- name: Unzip and Move Basemodel
run: unzip checkpoint.tf.zip -d ramp-code/ramp
- name: Install gdal
run: |
sudo apt-get update && sudo apt-get -y install gdal-bin libgdal-dev python3-gdal && sudo apt-get -y autoremove && sudo apt-get clean
pip install GDAL==$(gdal-config --version)
- name: Install ramp dependecies
run: |
cd ramp-code && cd colab && make install
- name: Navigate to home dir
run: |
cd ../..
ls
- name: Install tensorflow
run: pip install tensorflow==2.9.2
- name: Install pytorch and ultralytics
run: pip install torch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 --extra-index-url https://download.pytorch.org/whl/cu113 ultralytics==8.3.26
- name: Install fair utilities
run: pip install -e .
- name: Run test ramp
run: |
pip uninstall -y gdal
pip install numpy==1.26.4
pip install GDAL==$(gdal-config --version) --global-option=build_ext --global-option="-I/usr/include/gdal"
python test_ramp.py
- name: Run test yolo
run: |
python test_yolo_v1.py
python test_yolo_v2.py