Hello everyone
I would like to ask how can I implement the following Tensorflow functions in Pytorch
- tf.greater_equal(iou, T)
- tf.less(iou, T)
- sum_FP = tf.reduce_sum(FP)
- imgs = tf.expand_dims(imgs_ph, 3) #### [batch_size, 480, 640, 1]
Thanks for your help!
Warm regards
1 Like
richard
#2
Try the following:
iou >= T
iou < T
sum_FP = FP.sum()
imgs = torch.expand(imgs_ph, 3)
Let me know if any of those don’t do what you’re trying to do
2 Likes
ruotianluo
(Ruotian(RT) Luo)
#3
The last one should be imgs = imgs.unsqueeze(3)
7 Likes