Code Monkey home page Code Monkey logo

ml-ady-vision's Introduction

MLAdy Vision

All things related to vision ๐Ÿ‘€

vision

Table of Contents

Vision (All modules combined)

TODO: Combine detection and depth

Detection (module) ๐Ÿ”

YOLOv5 with custom training to detect trash

See train_trash_detection.ipynb for training

Datasets used for training:

Quick Start ๐Ÿš€

Clone YOLOv5 inside ml-ady-vision

git clone https://github.com/ultralytics/yolov5

Go into the yolov5 folder

cd yolov5

Install requirements

pip install -r requirements.txt

Run inference

python detect.py --source "../input/trash.jpg" --weights "../detection_weights.pt" --img-size 640 --conf 0.675 --exist-ok --project ../ --name output

Export ONNX-model

python models/export.py --weights "../detection_weights.pt" --img 640 --batch 1

Depth (module) ๐Ÿคฝโ€โ™‚๏ธ

AdaBins with pretrained models to estimate depth map

Datasets used for training:

Quick Start ๐Ÿš€

Install CUDA (tested on 10.2)

Install cuDNN (tested on 8.0.5 for CUDA 10.2)

Install Anaconda

Create virtual environment (tested on python 3.6.6)

conda create -n vision python=3.6.6 anaconda

Install PyTorch (tested on 1.7.0 and 1.7.1)

conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch

See get started if not following previous recommendations, as you may want another version of PyTorch.

Install Taqaddum

conda install -c conda-forge tqdm

Run the setup

setup_depth.sh

Download pretrained weights

Place pretrained weights in pretrained/

Test depth inference

python depth.py

ml-ady-vision's People

Contributors

vidundergunder avatar

Watchers

 avatar

Forkers

andkleven

ml-ady-vision's Issues

Shareable cross platform conda environment

A shareable conda environment is useful, as the whole core team uses it and no one is fluent in containers yet.

I've added my environment, that works with everything, but I'm pretty sure it's not correctly done.

The prefix tag in conda_vision_env.yml looks like trouble:

prefix: C:\Users\Kristian\.conda\envs\adabins

Anaconda has a guide for sharing an environment, so that's a good starting point.

The environment should work on all platforms.

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.