Git Product home page Git Product logo

test_sound's Introduction

ماژول شناسایی پهپاد در تصویر

مدل پیاده سازی شده برای شناسایی پهپاد در تصویر و رسم bbox آموزش دیده است و قابلیت اجرا بر روی cpu و gpu و multi-gpu را دارد.

معماری مدل

مدل پیاده سازی شده بر اساس یادگیری عمیق و با استفاده از معماری r-cnn و با شبکه ی keras-retinanet پیاده سازی شده است.

شناسایی

نصب و راه اندازی مدل

پیش نیازهای پروژه و ابزارهای لازم در فایل requirement.txt موجود است و با استفاده از دستور زیر میتوان آنها را نصب کرد. pip install -r requirements.txt

استفاده از مدل پیش آموزش دیده

برای شناسایی نیاز است مدل آموزش دیده در فولدر Trained-Model قرار داده شود که در حال حاضر مدل آموزش دیده موجود است در صورت آموزش مجدد مدل باید فایل جدید با این فایل جایگزین شود

اجرا روی GPU

نکته: برای اجرای مدل بر روی gpu باید در فایل requirement.txt خط tensorflow به tensorflow-gpu تغییر کند.

استفاده از مدل

با استفاده از رابط کاربری زیر میتوان از مدل برای شناسایی پهپاد در تصاویر استفاده کرد.

from core import Core  

c = Core()  
  
image_filename = c.current_path + "/DataSets/Drones/testImages/351.jpg"  
image = c.load_image_by_path(image_filename)  
  
drawing_image = c.get_drawing_image(image)  
  
processed_image, scale = c.pre_process_image(image)  
  
c.set_model(c.get_model())  
boxes, scores, labels = c.predict_with_graph_loaded_model(processed_image, scale)  
  
detections = c.draw_boxes_in_image(drawing_image, boxes, scores)  
  
c.visualize(drawing_image)

test_sound's People

Contributors

maliarab avatar slapbot 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.