Giter VIP home page Giter VIP logo

mask-rcnn-on-custom-dataset-2classes-'s Introduction

mask-rcnn-on-custom-dataset-2classes-'s People

Contributors

aarohisingla avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

mask-rcnn-on-custom-dataset-2classes-'s Issues

TypeError: string indices must be integers

hi Aarohi,

while training the model i am getting this error message..

Traceback (most recent call last):
File "custom.py", line 192, in
train(model)
File "custom.py", line 159, in train
dataset_train.load_custom("E:\work_dsi\mask rcnn\Mask_RCNN\Dataset", "train")
File "custom.py", line 97, in load_custom
num_ids = [int(n['Event']) for n in objects]
File "custom.py", line 97, in
num_ids = [int(n['Event']) for n in objects]
TypeError: string indices must be integers

please suggest me what to do now...

Thanks

Error while running the code

Hi,

I am trying to run the code on a custom dataset, which has 13 classes. However, I am getting the following error:
''' ---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
in
7 utils.download_trained_weights(weights_path)
8
----> 9 model.load_weights(weights_path, by_name=True, exclude=["mrcnn_class_logits", "mrcnn_bbox_fc", "mrcnn_bbox", "mrcnn_mask"])
10
11 train(model)

C:\Ajay\Codes_and_Outcomes\Mask_RCNN\mrcnn\model.py in load_weights(self, filepath, by_name, exclude)
2128
2129 if by_name:
-> 2130 saving.load_weights_from_hdf5_group_by_name(f, layers)
2131 else:
2132 saving.load_weights_from_hdf5_group(f, layers)

~\AppData\Local\anaconda3\envs\Mask_RCNN\lib\site-packages\keras\engine\saving.py in load_weights_from_hdf5_group_by_name(f, layers, skip_mismatch, reshape)
1081 """
1082 if 'keras_version' in f.attrs:
-> 1083 original_keras_version = f.attrs['keras_version'].decode('utf8')
1084 else:
1085 original_keras_version = '1'

AttributeError: 'str' object has no attribute 'decode'
'''
It looks like the error is originating from a function within keras, which I don't think I should edit.
Could you please suggest what might be happening here and how can I get this corrected?

utils.py file is missing

Dear madam!
Thanks for your teaching as I am trying to dry run your code i think utils.py file is missing as in video lecture we can see its present and your are importing it directory .
please upload utils.py file

Thanks !

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.