MechanIT / Speech-and-object-recognition-for-elderly-people-living-alone

์˜คํ”ˆ์†Œ์Šค ํ”„๋กœ๊ทธ๋ž˜๋ฐ
0 stars 1 forks source link

๐Ÿ‘ฉโ€๐ŸฆณSpeech-and-object-recognition-for-elderly-people-living-alone๐Ÿ‘จโ€๐Ÿฆณ

ํ”„๋กœ์ ํŠธ ์†Œ๊ฐœ

์Œ์„ฑ ์ธ์‹๊ณผ ์ปดํ“จํ„ฐ ๋น„์ „์„ ํ™œ์šฉํ•œ ๋…๊ฑฐ ๋…ธ์ธ ์•ˆ๋ถ€ ํ™•์ธ ์„œ๋น„์Šค
: ๋…๊ฑฐ ๋…ธ์ธ๋“ค์˜ ์ผ์ƒ์— ์ฃผ๊ธฐ์ ์œผ๋กœ ์•ˆ๋ถ€๋ฅผ ๋ฌป๊ณ , ์œ„๊ธ‰ํ•œ ์ƒํ™ฉ ๋ฐœ์ƒ ์‹œ ๋น„์ƒ ์—ฐ๋ฝ๋ง์œผ๋กœ ์—ฐ๋ฝ ์กฐ์น˜ํ•  ์ˆ˜ ์žˆ๋Š” ์„œ๋น„์Šค

๐Ÿ“… ๊ฐœ๋ฐœ ๊ธฐ๊ฐ„

2024๋…„ 5์›” 3์ฃผ ~ 2024๋…„ 6์›” 3์ฃผ์ฐจ

โš™ ๊ฐœ๋ฐœ ํ™˜๊ฒฝ

windows mac github notion git vscode colab flask
python html

๐Ÿ“ข OSS NOTICE

์ด ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์€ ๋‹ค์Œ์˜ ์˜คํ”ˆ์†Œ์Šค AI ๋ชจ๋ธ์„ ํฌํ•จํ•ฉ๋‹ˆ๋‹ค:

yolov7 : GNU General Public License v3.0 (GPL-3.0) #### ์ €์ž‘๊ถŒ ๋ฐ ๋ผ์ด์„ ์Šค > This application incorporates yolov7, which is licensed under the GNU General Public License v3.0 (GPL-3.0). > Copyright ยฉ MechanIT. All rights reserved for the portions of this application that are our original work. > This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. > This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. > You should have received a copy of the GNU General Public License along with this program. If not, see .




๐Ÿ“œ flowchart



โœ” ์ฃผ์š” ๊ธฐ๋Šฅ

  1. ์‚ฌ๋žŒ(person / fallen person) ๊ฐ์ฒด ์ธ์‹
  2. person์œผ๋กœ ๊ฐ์ฒด๊ฐ€ ์ธ์‹๋˜๋ฉด ์•Œ๋ฆผ ์Œ์„ฑ ์ถœ๋ ฅ / fallen person์œผ๋กœ ์ธ์‹๋˜๋ฉด ์›€์ง์—ฌ๋‹ฌ๋ผ๋Š” ๊ฒฝ๊ณ  ์Œ์„ฑ ์ถœ๋ ฅ
  3. ์œ„๊ธ‰ ์ƒํ™ฉ์œผ๋กœ(fallen person์œผ๋กœ ๊ฐ์ฒด ์ธ์‹๋˜๋‚˜ ์›€์ง์ž„ ์—†์„ ์‹œ) ํŒ๋‹จ ์‹œ ์›นํŽ˜์ด์ง€ ์ถœ๋ ฅ ๋ฐ ์ด๋ฉ”์ผ ์ „์†ก



โ“ ํ”„๋กœ์ ํŠธ ์‚ฌ์šฉ ๋ฐฉ๋ฒ•

python main.py  # main.py ์‹คํ–‰ 



๐Ÿ“Œ Discussion

[ yolo ๋ฒ„์ „์— ๋”ฐ๋ฅธ ํ•œ๊ณ„์  ๋น„๊ต (pretrained model) ]

yolov3 tiny
  • ์ธ์‹์ด ๋งค์šฐ ๋ถˆ์•ˆ์ •ํ•จ. bounding box๊ฐ€ ์ง€์†์ ์œผ๋กœ ๋‚˜ํƒ€๋‚˜์ง€ ์•Š๊ณ  ๊นœ๋นก๊ฑฐ๋ฆผ

  • ๋ˆ„์›Œ ์žˆ๋Š” ์‚ฌ๋žŒ์˜ ๊ฒฝ์šฐ, ์‚ฌ๋žŒ์œผ๋กœ ์ธ์ง€ํ•˜์ง€ ๋ชปํ•จ

  • ์ •์ž์„ธ์ธ ์‚ฌ๋žŒ๋งŒ ์ œ๋Œ€๋กœ ์ธ์‹ํ•˜๋ฉฐ, ์ž์„ธ๊ฐ€ ์กฐ๊ธˆ๋งŒ ๋ฐ”๋€Œ์–ด๋„ ์ธ์ง€ํ•˜์ง€ ๋ชปํ•จ
yolov5
  • yolov3์™€ ๋‹ค๋ฅด๊ฒŒ ๋ˆ„์›Œ ์žˆ๋Š” ์‚ฌ๋žŒ๋„ person์œผ๋กœ ์ธ์‹ํ•จ.

  • ๊ฐ์ฒด์˜ ์ผ๋ถ€๋ถ„๋งŒ ์‚ฌ๋žŒ์œผ๋กœ ์ธ์‹ํ•˜๋Š” yolov3์™€ ๋‹ค๋ฅด๊ฒŒ, ์‚ฌ๋žŒ(person)์œผ๋กœ ์ธ์‹ํ•˜๋Š” ๋ฒ”์œ„(bounding box)๊ฐ€ ๋” ์ปค์ง€๊ณ  ๋‹ค์–‘ํ•œ ์ž์„ธ์—๋„ ์‚ฌ๋žŒ์œผ๋กœ ์ธ์ง€๋ฅผ ํ•  ์ˆ˜ ์žˆ์Œ

    โ†’ ๊ทธ๋Ÿฌ๋‚˜ ๋ˆ„์›Œ ์žˆ๋Š” ์ž์„ธ๊นŒ์ง€ ์ธ์ง€ ๋ถˆ๊ฐ€
yolov7
  • ์ธ์ง€ ์ •ํ™•๋„๊ฐ€ ๋งค์šฐ ๋†’์Œ. ํŠนํžˆ ์‚ฌ๋žŒ์˜ ๊ฒฝ์šฐ ๋Œ€๋ถ€๋ถ„ 90% ์ด์ƒ์˜ ์ •ํ™•๋„๊ฐ€ ์ถœ๋ ฅ๋จ


  • ์‚ฌ๋žŒ์ด ์ •์ง€ํ•ด ์žˆ์„ ๊ฒฝ์šฐ, Bounding box ํฌ๊ธฐ ๋ณ€ํ™”๊ฐ€ ์ž‘์Œ


  • yolov3, yolov5๋ณด๋‹ค ์‹ค์‹œ๊ฐ„์„ฑ์ด ๋งค์šฐ ์ข‹์Œ

    โ†’ โ—๋ชจ๋ธ์˜ ์‹ค์‹œ๊ฐ„์„ฑ๊ณผ ์ •ํ™•์„ฑ์„ ๊ณ ๋ คํ•˜์—ฌ, ํ•™์Šต์‹œํ‚ฌ ๋ชจ๋ธ์„ yolov7์œผ๋กœ ๊ฒฐ์ •โ—


[ yolov9 ๋ชจ๋ธ ํ•™์Šต ๋ฌธ์ œ ]

yolov9 ์ธ์ง€ ๊ฒฐ๊ณผ
์„ฑ๋Šฅ๋น„๊ต๋ฅผ ์œ„ํ•ด yolov7๊ณผ yolov9์„ ๋™์ผ ๋ฐ์ดํ„ฐ์…‹, ๋™์ผ batch size์™€ epoch๋กœ ํ•™์Šต์„ ์ง„ํ–‰ํ•จ.
๊ทธ๋Ÿฌ๋‚˜, yolov9 ํ•™์Šต ๋ชจ๋ธ์„ ์‹คํ–‰ํ–ˆ์„ ๋•Œ ๊ฐ์ฒด๋ฅผ ์ธ์ง€ํ•˜๋Š” ๋น„์œจ์ด ๋‚ฎ๊ณ  ์ธ์ง€์— ์„ฑ๊ณตํ•˜๋”๋ผ๋„ ์ •ํ™•๋„๊ฐ€ ์•„์ฃผ ๋‚ฎ์Œ.

  • ํ•œ๋ช…์ด ์žกํ˜”์„ ๋•Œ person์œผ๋กœ ํŒ๋ณ„๊ฐ€๋Šฅ
  • ํ•˜๋“œ์›จ์–ด์˜ ํ•œ๊ณ„์ƒ, ๋”œ๋ ˆ์ด๊ฐ€ ๋งค์šฐ ์‹ฌํ•˜๊ณ  person์„ ์ธ์ง€ํ•˜๋‚˜ ๊ทธ ์ •ํ™•๋„๊ฐ€ 0.2 ์ˆ˜์ค€์œผ๋กœ ๋‚ฎ์Œ. ๋˜ํ•œ ๊ฑฐ์˜ ์ „์‹ ์˜ 1/2 ์ด์ƒ์ด ๋‚˜์™€์•ผ person์œผ๋กœ ์ธ์ง€ ๊ฐ€๋Šฅํ•˜๊ณ  ์ •์ž์„ธ์—์„œ ๋ฒ—์–ด๋‚˜๋Š” ์ž์„ธ๋ฅผ ์ทจํ•˜๊ฑฐ๋‚˜ ๊ฑฐ๋ฆฌ๊ฐ€ ๊ฐ€๊นŒ์šฐ๋ฉด ๊ฑฐ์˜ ์ธ์‹ํ•˜์ง€ ๋ชปํ•จ

  • ๋ˆ„์šด ์‚ฌ๋žŒ
  • ๋ˆ„์šด ์‚ฌ๋žŒ์˜ ๊ฒฝ์šฐ, ๋‹ค๋ฅธ ํ•™์Šต๋œ ๋ชจ๋ธ๊ณผ ๋‹ค๋ฅด๊ฒŒ ๊ฑฐ์˜ ์ธ์‹ํ•˜์ง€ ๋ชปํ•จ. ๋‹ค์–‘ํ•œ ์ž์„ธ์™€ ๊ฐ๋„๋กœ ํ•™์Šต์‹œ์ผฐ์ง€๋งŒ ์‹ค์ œ ๊ฒ€์ฆ์—์„œ๋Š” ๋งŽ์€ ์‹œ๋„์ค‘์— 1๋ฒˆ ์ธ์‹๋  ์ •๋„๋กœ ๊ฑฐ์˜ ์ธ์‹ํ•˜์ง€ ๋ชปํ•จ.

  • 2๋ช… ์ด์ƒ์˜ ์‚ฌ๋žŒ์ด ํ™”๋ฉด์— ๋‚˜์™”์„ ๋•Œ
  • ์ •์ƒ์ ์œผ๋กœ ํ•™์Šต๋œ v7์˜ ๊ฒฝ์šฐ, 2๋ช…์ด ์ธ์‹๋ผ๋„ ์ •ํ™•๋„๊ฐ€ ๋–จ์–ด์ง€์ง€ ์•Š๊ณ  ๋ชจ๋‘ ์‚ฌ๋žŒ์œผ๋กœ ์ธ์‹ํ•  ์ˆ˜ ์žˆ๋Š” ๊ฒƒ์„ ํ™•์ธํ•จ.
    ๋˜ํ•œ 2๋ช…์˜ ์ž์„ธ๊ฐ€ ๋‹ฌ๋ผ๋„ ๋™์‹œ์— ์„ฑ๊ณต์ ์œผ๋กœ ์ž์„ธ๋ฅผ ๊ตฌ๋ณ„ํ•˜์—ฌ ์ธ์‹ํ•  ์ˆ˜ ์žˆ์—ˆ์Œ.

    ๊ทธ๋Ÿฌ๋‚˜ v9์˜ ๊ฒฝ์šฐ 2๋ช…์ด ํ™”๋ฉด์— ๋‚˜์˜ค๋ฉด ๊ฐ๊ฐ์„ person์œผ๋กœ ์ธ์ง€๋Š” ํ•˜๋‚˜, 2๋ช…์ด ๊ฐ๊ธฐ ๋‹ค๋ฅธ ์ž์„ธ๋ฅผ ์ทจํ•ด๋„ ์—ญ์‹œ ์ธ์‹ํ•˜์ง€ ๋ชปํ•˜๊ณ  ์†์„ ์‚ฌ๋žŒ์œผ๋กœ ์ธ์‹ํ•˜๋Š” ๋“ฑ ์˜ค์ธ์‹ ๋ฌธ์ œ๋„ ๋ฐœ๊ฒฌ๋จ.

yolov7๊ณผ yolov9 ๋ชจ๋ธ ์‚ฌ์–‘ ๋น„๊ต
  • yolov7๊ณผ yolov9 ๋ชจ๋ธ ์‚ฌ์–‘์˜ ๋น„๊ต

  • yolov9์˜ ๊ฒฝ์šฐ ์‹ฌํ•œ ๋”œ๋ ˆ์ด์™€ ๋‚ฎ์€ ์ธ์‹๋„์˜ ๋ฌธ์ œ๋ฅผ ๊ฐ€์กŒ์Œ. ์ด๋ฅผ ๋ณด๋‹ค ์„ฑ๊ณต์ ์ด์—ˆ๋˜ yolov7๊ณผ yolov9 ๋ชจ๋ธ ์‚ฌ์–‘์˜ ๋น„๊ต๋ฅผ ํ†ตํ•ด ๋ถ„์„ํ•ด๋ด„.



  • yolov9 ๋ชจ๋ธ์€ yolov7 ๋ชจ๋ธ์— ๋น„ํ•ด ๋ ˆ์ด์–ด ์ˆ˜๊ฐ€ ๋‘ ๋ฐฐ ๊ฐ€๊นŒ์ด ๋งŽ๊ณ , ํŒŒ๋ผ๋ฏธํ„ฐ ์ˆ˜์™€ FLOPs ๋˜ํ•œ ์ƒ๋‹นํžˆ ์ฆ๊ฐ€ํ•ด ๋” ๋ณต์žกํ•˜๊ณ  ๊ณ„์‚ฐ๋Ÿ‰์ด ๋งŽ์Œ์„ ์˜๋ฏธํ•จ.

    โ†’ ๋ณต์žก์„ฑ์ด ์ฆ๊ฐ€ํ•˜๋ฉด ๋” ๋งŽ์€ ์—ฐ์‚ฐ์ด ํ•„์š”ํ•˜๊ณ , ์ด๋Š” ๋” ๋งŽ์€ ํ•™์Šต ๋ฐ์ดํ„ฐ์™€ ์‹œ๊ฐ„์ด ์š”๊ตฌ๋จ.

    โ†’ ๋”ฐ๋ผ์„œ ๊ฐ™์€ ์กฐ๊ฑด(์˜ˆ: batch size, epoch)์—์„œ ํ•™์Šตํ–ˆ์„ ๋•Œ v7๋ณด๋‹ค yolov9 ๋ชจ๋ธ์ด ์ถฉ๋ถ„ํžˆ ํ•™์Šต๋˜์ง€ ๋ชปํ•  ๊ฐ€๋Šฅ์„ฑ์ด ๋†’์Œ.