Hi,
I’m not sure to understand what you mean by " try to index  samples  with this index"
If I print idx outside the training loop I get 
`

idx :  [0]
self.samples :  [‘dalle_741’, ‘dalle_321’, ‘dalle_444’,(…)‘dalle_532’]
len(self.samples) :  973