Giter VIP home page Giter VIP logo

codeperfectplus / mask-rcnn-implementation Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 2.0 464 KB

Mask RCNN Implementation on Custom Data(Labelme)

Home Page: https://codeperfectplus.github.io/Mask-RCNN-Implementation/

License: MIT License

Python 2.56% Jupyter Notebook 97.44%
mask-rcnn image-segmentation deep-learning labelme labelme-json labelme-annotations computer-vision machine-learning mask-rcnn-models microcontroller

mask-rcnn-implementation's Introduction

website title image

๐Ÿ‘‰ Mask RCNN Implementation on LabelMe Annotations Data ๐Ÿ‘ˆ

repo language github stars github forks code size

Prepare Data

DataSet Folder Structure

Labelme Annotations tools

- Data_folder
    - train
        - img1.jpg
        - img1.json
        - img2.jpg
        - img2.json
        ...
    - val
        - img3.jpg
        - img2.json
        - img4.jpg
        - img4.json
        ...

Training

# Configuration
# Adjust according to your Dataset and GPU

IMAGES_PER_GPU = 2 # 1
 
# Number of classes (including background)
NUM_CLASSES = 1 + 1 # Background

# typically after labeled, class can be set from Dataset class
# if you want to test your model, better set it corectly based on your trainning dataset

# Number of training steps per epoch
STEPS_PER_EPOCH = 100

The easiest way to get started is to simply try out on Colab:

Training the model on Custom Data

python customTrain.py train --dataset=path_to_Data_folder --weights=coco

ReTraining from Last Checkpoint

python customTrain.py train --dataset=path_to_Data_folder --weights=last

Requirements

  • Python3.6
  • Tensorflow-gpu==1.15
  • keras==2.0.8

For more details check Mask RCNN Repo

mask-rcnn-implementation's People

Contributors

codeperfectplus avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

mask-rcnn-implementation's Issues

IndexError: index 2848 is out of bounds for axis 0 with size 2848

Hi,
I got the following error during the model training,

Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/mrcnn/model.py", line 1709, in data_generator
use_mini_mask=config.USE_MINI_MASK)
File "/usr/local/lib/python3.7/dist-packages/mrcnn/model.py", line 1212, in load_image_gt
mask, class_ids = dataset.load_mask(image_id)
File "/content/Mask-RCNN-Implementation/customTrain.py", line 211, in load_mask
mask[rr, cc, idx] = 1
IndexError: index 2848 is out of bounds for axis 0 with size 2848

anyone can you have a solution kindly help me to fix an this error.
Thank you

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.