experiencor / keras-yolo2

Easy training on custom dataset. Various backends (MobileNet and SqueezeNet) supported. A YOLO demo to detect raccoon run entirely in brower is accessible at https://git.io/vF7vI (not on Windows).
MIT License
1.73k stars 784 forks source link

Weights and Biases quick question #262

Open RJVisee44 opened 6 years ago

RJVisee44 commented 6 years ago

Since they framed detection as a YOLO problem, I assume they have weights and biases. (eg. the classic equation for regression: y = xW + b, where W is the weights and b is the bias). Does this just mean that the 'weights' are the weights saved into the h5 file? Does that file also include the bias?

I'm asking because I am trying to plot these in a histogram to visualize in Tensorboard and I am not sure where exactly to find this information in the code (i.e. where in the code to put tf.summary.histogram("weights", weights)). I tried just setting histogram_freq=1 but Tensorboard doesn't like generators. Still relatively new to tensorflow and tensorboard.

experiencor commented 6 years ago

Includes both weight and bias.

joubertdamien commented 4 years ago

@experiencor is this case, why in https://github.com/experiencor/keras-yolo2/blob/master/Yolo%20Step-by-Step.ipynb do we have:

x = Conv2D(64, (3,3), strides=(1,1), padding='same', name='conv_2', use_bias=False)(x)