Custom loss function like tripletloss?

352 views
Skip to first unread message

Tomas Batrla

unread,
May 4, 2019, 11:09:38 AM5/4/19
to TensorFlow.js Discussion
Hello guys,
I just want to ask if am I able to create custom loss function in tfjs? Do you have any tutorial or at least some remarks to that?
I would like to do a tripletloss for image retrieval problem.

Thanks,
Tom

Shanqing Cai

unread,
May 4, 2019, 1:24:25 PM5/4/19
to Tomas Batrla, TensorFlow.js Discussion
We have an examples for custom loss functions here:

It's a part of the example for training a very simple object detection model using transfer learning.

--
You received this message because you are subscribed to the Google Groups "TensorFlow.js Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tfjs+uns...@tensorflow.org.
Visit this group at https://groups.google.com/a/tensorflow.org/group/tfjs/.
To view this discussion on the web visit https://groups.google.com/a/tensorflow.org/d/msgid/tfjs/b73bf023-76f7-4b2f-84ac-baca6ea960b3%40tensorflow.org.


--
---
Shanqing Cai
Software Engineer
Google

Tomas Batrla

unread,
May 4, 2019, 4:14:33 PM5/4/19
to TensorFlow.js Discussion, tomas....@gmail.com
That's it. Thanks!

T

Dne sobota 4. května 2019 19:24:25 UTC+2 Shanqing Cai napsal(a):
We have an examples for custom loss functions here:

It's a part of the example for training a very simple object detection model using transfer learning.

From: Tomas Batrla <tomas...@gmail.com>
Date: Sat, May 4, 2019 at 11:09 AM
To: TensorFlow.js Discussion

Hello guys,
I just want to ask if am I able to create custom loss function in tfjs? Do you have any tutorial or at least some remarks to that?
I would like to do a tripletloss for image retrieval problem.

Thanks,
Tom

--
You received this message because you are subscribed to the Google Groups "TensorFlow.js Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tf...@tensorflow.org.
Reply all
Reply to author
Forward
0 new messages