Giter Club home page Giter Club logo

yolo-ssl-cont's Introduction

YOLO-SSL-cont

How to run code

終端機路徑執行路徑

./yolossl

權重放置路徑(兩個都需要)

./yolossl/weights
./yolossl/yolov7/weights

權重名稱

YOLOSSL.pt

(Mode1 YOLO背景執行)

首先載入偵測模型(不中斷執行)

需要打開第一個終端機後執行指令

python yolov7/detectcont.py

切割圖片後偵測以及合併

打開第二個終端機後執行指令

python testcont.py ../configs/testPCBsl.yaml

需要偵測圖片路徑

rawdata/

偵測結果圖片路徑

results/test

(Mode2 YOLO-SSL單次執行)

偵測以及前後處理執行指令

python test.py ../configs/testPCBsl.yaml

需要偵測圖片路徑

rawdata/

偵測結果圖片路徑

results/test

config中的yaml file參數設定

name_file_name

檔案需要放在yolosl資料夾內,檔名為 xxx.yaml,以下為yaml file範例

train: ship/train/images
val: ship/valid/images
nc: 2
names: ['-', 'Ship']

object_names:

對應上面names的分類

- '-'
- 'Ship'

sealand

如果為 True 則會對切割後的圖片進行海陸分離

test_im_dir

要偵測的圖片資料夾位置

sliceHeight and Width

切割後的圖片大小

slice_overlap

每一個切割相鄰圖片的重疊比例

yolo-ssl-cont's People

Contributors

hpx2939 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.