I figured out the slow dataloader, and all my dataset was not used...
turned that
```
def __getitem__(self, index):
items_with_index = list(enumerate(self._label))
img0_index, img0_tuple = random.choice(items_with_index)
```
into this
```
def __getitem__(self, index):
img0_tuple = self._label[index]
```
and put the `item_with_index` as a member, so it's not computed everytime for
`img1_index, img1_tuple = random.choice(self._items_with_index)`
But still not converging, embedding plot looking always the same despite the
loss being reduced....
---
[Visit
Topic](https://discuss.mxnet.io/t/siamese-network-issue-no-gradient-no-clue-why/6372/2)
or reply to this email to respond.
You are receiving this because you enabled mailing list mode.
To unsubscribe from these emails, [click
here](https://discuss.mxnet.io/email/unsubscribe/46067ccd6df7c4aa5d6acbcadd22f3675a354c44c899d7a89e3280cc6d377286).