Code Monkey home page Code Monkey logo

Comments (4)

kentaroy47 avatar kentaroy47 commented on August 24, 2024

label file should be a .txt file, as in the original VOC.
can you fix that and try again?

from frcnn-from-scratch-with-keras.

TomasTrnkaPLC avatar TomasTrnkaPLC commented on August 24, 2024

My apologies. I made a mistake with my xml_to_csv. He generates the first row with column prefix like filename,x1,y2...
E:\images\01.jpg ....

csv or txt that does matter. Work with both.

from frcnn-from-scratch-with-keras.

prinipj avatar prinipj commented on August 24, 2024

My label file is annotate.txt where the rows are like this drive/My Drive/Colab Notebooks/frcnn/dataset/1.jpg",251,161,598,335,pothole

When I run this command
!python 'drive/My Drive/Colab Notebooks/frcnn/frcnn-from-scratch-with-keras/train_rpn.py' --network resnet50 -o simple -p 'drive/My Drive/Colab Notebooks/frcnn/dataset/annotate.txt'

I get this error
Parsing annotation files
Traceback (most recent call last):
File "drive/My Drive/Colab Notebooks/frcnn/frcnn-from-scratch-with-keras/train_rpn.py", line 130, in
all_imgs, classes_count, class_mapping = get_data(options.train_path)
File "/content/drive/My Drive/Colab Notebooks/frcnn/frcnn-from-scratch-with-keras/keras_frcnn/simple_parser.py", line 37, in get_data
(rows,cols) = img.shape[:2]
AttributeError: 'NoneType' object has no attribute 'shape'

I tried different solutions but I am unable to resolve

from frcnn-from-scratch-with-keras.

SnehaDeepak avatar SnehaDeepak commented on August 24, 2024

I m also facing the same issue.
get_data not able to read images from path. therefore attribute error..
any solution to that...

from frcnn-from-scratch-with-keras.

Related Issues (20)

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.