You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, `I studied your code for a long time, but I still don't understand why your loss function has things that I haven't seen in the yolo / yolov2 articles.
In particular, I've noticed that you apply tf.nn.sparse_categorical_ce_from_logits to class_predicted, but I've seen other implementations that simply apply tf.math.softmax to it, then compute the error tf.math.sqrt (predicted_logits - true_logits).
What do you think about this ?
Another question, is if you recommend me to use a loss function like in the following code:
`import numpy as np
import tensorflow as tf
Hello, `I studied your code for a long time, but I still don't understand why your loss function has things that I haven't seen in the yolo / yolov2 articles.
In particular, I've noticed that you apply tf.nn.sparse_categorical_ce_from_logits to class_predicted, but I've seen other implementations that simply apply tf.math.softmax to it, then compute the error tf.math.sqrt (predicted_logits - true_logits).
What do you think about this ?
Another question, is if you recommend me to use a loss function like in the following code:
`import numpy as np
import tensorflow as tf
class Loss:
def init(self, anchors, lambda_coord=5, lambda_noobj=1):
self.anchors = anchors
self.lambda_coord = lambda_coord
self.lambda_noobj = lambda_noobj
self.priors = self.make_priors()
self.first_run = True
pass
I hope you can help me with this doubt that torments me a lot, thnks!
The text was updated successfully, but these errors were encountered: