Giter Club home page Giter Club logo

Comments (10)

ssaru avatar ssaru commented on August 15, 2024 1

Yes good!
Now you got error messagr that same with me
Im waiting author's answer :)

from darknet.keras.

sunshineatnoon avatar sunshineatnoon commented on August 15, 2024 1

@ssaru I don't have access to a machine with GPU, so probably will not fix this bug. You might want to try other YOLO implementations: Tensorflow Version or Pytorch Version(YOLO2)

from darknet.keras.

sunshineatnoon avatar sunshineatnoon commented on August 15, 2024

Maybe #5 can help you. This repo based on the old YOLO weight, now YOLO has updated to 2.0. So you might need the old weight here.

from darknet.keras.

ssaru avatar ssaru commented on August 15, 2024

it's look like read weights file!

but... i getting another error!

Traceback (most recent call last):
File "RunTinyYOLO.py", line 209, in
model = SimpleNet(yoloNet)
File "RunTinyYOLO.py", line 38, in SimpleNet
model.add(Convolution2D(16, 3, 3, weights=[yoloNet.layers[1].weights,yoloNet.layers[1].biases],border_mode='valid',subsample=(1,1)))
File "/home/martin/Documents/enumnet/goverment_project/Deeplearning/Study/keras-darknet/env/lib/python3.5/site-packages/keras/models.py", line 476, in add
output_tensor = layer(self.outputs[0])
File "/home/martin/Documents/enumnet/goverment_project/Deeplearning/Study/keras-darknet/env/lib/python3.5/site-packages/keras/engine/topology.py", line 576, in call
self.set_weights(self._initial_weights)
File "/home/martin/Documents/enumnet/goverment_project/Deeplearning/Study/keras-darknet/env/lib/python3.5/site-packages/keras/engine/topology.py", line 1190, in set_weights
'provided weight shape ' + str(w.shape))
ValueError: Layer weight shape (3, 3, 448, 16) not compatible with provided weight shape (16, 3, 3, 3)

screenshot from 2017-06-23 11-09-01

from darknet.keras.

Abduoit avatar Abduoit commented on August 15, 2024

Hi, I tried with the old weight but still getting error

abdulrahman@abdulrahman-ThinkPad-X230-Tablet:~/Darknet.keras$ python RunTinyYOLO.py
Traceback (most recent call last):
File "RunTinyYOLO.py", line 6, in
from utils.crop import crop
File "/home/abdulrahman/Darknet.keras/utils/crop.py", line 3, in
from scipy import misc
ImportError: No module named scipy

from darknet.keras.

ssaru avatar ssaru commented on August 15, 2024

@Abduoit
I think that you should install scipy module

pip install scipy
Or
pip3 install scipy

from darknet.keras.

Abduoit avatar Abduoit commented on August 15, 2024

Thx @ssaru
I did
Now I get the following error

abdulrahman@abdulrahman-ThinkPad-X230-Tablet:~/Darknet.keras$ python RunTinyYOLO.py
Traceback (most recent call last):
File "RunTinyYOLO.py", line 8, in
from keras.models import Sequential
ImportError: No module named keras.models

from darknet.keras.

ssaru avatar ssaru commented on August 15, 2024

You installed keras? With tensorflow

  1. You should install tensorflow
    And after
    pip install keras

from darknet.keras.

Abduoit avatar Abduoit commented on August 15, 2024

@ssaru
I do have tensorflow and keras and theano
now I am getting the following error

abdulrahman@abdulrahman-ThinkPad-X230-Tablet:~/Darknet.keras$ python RunTinyYOLO.py
Using TensorFlow backend.
RunTinyYOLO.py:38: UserWarning: Update your Conv2D call to the Keras 2 API: Conv2D(16, (3, 3), padding="valid", strides=(1, 1), weights=[array([[[...)
model.add(Convolution2D(16, 3, 3, weights=[yoloNet.layers[1].weights,yoloNet.layers[1].biases],border_mode='valid',subsample=(1,1)))
Traceback (most recent call last):
File "RunTinyYOLO.py", line 209, in
model = SimpleNet(yoloNet)
File "RunTinyYOLO.py", line 38, in SimpleNet
model.add(Convolution2D(16, 3, 3, weights=[yoloNet.layers[1].weights,yoloNet.layers[1].biases],border_mode='valid',subsample=(1,1)))
File "/usr/local/lib/python2.7/dist-packages/keras/models.py", line 469, in add
output_tensor = layer(self.outputs[0])
File "/usr/local/lib/python2.7/dist-packages/keras/engine/topology.py", line 576, in call
self.set_weights(self._initial_weights)
File "/usr/local/lib/python2.7/dist-packages/keras/engine/topology.py", line 1190, in set_weights
'provided weight shape ' + str(w.shape))
ValueError: Layer weight shape (3, 3, 448, 16) not compatible with provided weight shape (16, 3, 3, 3)

from darknet.keras.

ssaru avatar ssaru commented on August 15, 2024

Ok! i will try!
thanks :) !!

from darknet.keras.

Related Issues (10)

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.