Code Monkey home page Code Monkey logo

traffic-light-detection-module's Issues

Problem in load_model function

I get the following error on running:

Traceback (most recent call last):
File "main.py", line 30, in
main(arg_parser.parse_args())
File "main.py", line 13, in main
yolo = YOLO(config)
File "/Users/shriyavanvari/Documents/SJSU/Semester 1/CMPE 257/CARLA/Code/traffic-light-detection-module/yolo.py", line 113, in init
self.feature_extractor = TinyYoloFeature(self.image_h, config).feature_extractor
File "/Users/shriyavanvari/Documents/SJSU/Semester 1/CMPE 257/CARLA/Code/traffic-light-detection-module/yolo.py", line 56, in init
pretrained = load_model('checkpoints/' + config['model']['saved_model_name'], custom_objects={'custom_loss': dummy_loss, 'tf': tf})
File "/Users/shriyavanvari/anaconda3/lib/python3.7/site-packages/keras/engine/saving.py", line 492, in load_wrapper
return load_function(*args, **kwargs)
File "/Users/shriyavanvari/anaconda3/lib/python3.7/site-packages/keras/engine/saving.py", line 584, in load_model
model = _deserialize_model(h5dict, custom_objects, compile)
File "/Users/shriyavanvari/anaconda3/lib/python3.7/site-packages/keras/engine/saving.py", line 270, in _deserialize_model
model_config = h5dict['model_config']
File "/Users/shriyavanvari/anaconda3/lib/python3.7/site-packages/keras/utils/io_utils.py", line 318, in getitem
raise ValueError('Cannot create group in read-only mode.')
ValueError: Cannot create group in read-only mode.
Can you please help out?

How did you generate the dataset?

Hello, thank you for sharing your work. Yourdataset is very interesting.
I am collecting a traffic light dataset in Carla too, but I have problem in retrieving the status of the traffic light along with the bounding boxes. How did you collect the data?

I cannot run genereate_anchors.py

(TensorFlow-GPU) C:\Users\lkit5\Development\traffic-light-detection-module>python generate_anchors.py -c config.json
Objects omitted 19
Red light: 810
Green light: 947
1757
Traceback (most recent call last):
File "generate_anchors.py", line 152, in
main(args)
File "generate_anchors.py", line 133, in main
h, w, c = img.shape
AttributeError: 'NoneType' object has no attribute 'shape'

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.