Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue with warmup_batches #452

Open
speeding-motor opened this issue May 24, 2020 · 0 comments
Open

issue with warmup_batches #452

speeding-motor opened this issue May 24, 2020 · 0 comments

Comments

@speeding-motor
Copy link

speeding-motor commented May 24, 2020

in frontend.py
def custom_loss:
true_box_xy, true_box_wh, coord_mask = tf.cond(tf.less(seen, self.warmup_batches+1), lambda: [true_box_xy + (0.5 + cell_grid) * no_boxes_mask, true_box_wh + tf.ones_like(true_box_wh) * \ np.reshape(self.anchors, [1, 1, 1, self.nb_box, 2]) * \ no_boxes_mask, tf.ones_like(coord_mask)], lambda: [true_box_xy, true_box_wh, coord_mask])

why here need to do this , why not use true_box_wh = true_box_wh when seen < warmup_batches,

when I not use warmup_batches, the nan error occurred when training(error occured in tf.exp(pred_wh)),

can you please help me ,Thank you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant