Error: 'a' must be greater than 0 unless no samples are taken

How do I overcome this Error?
Value Error: ‘a’ must be greater than 0 unless no samples are taken


Thanks

I’m not sure about DLC, but the Python error, which is at the line img_idx = np.random.choice(self.num_images, size=self.batch_size, replace=True, together with the signature for np.random.choice, suggests that self.num_images is 0. Perhaps you have tried to run DLC with no input training images? If you did give training images, perhaps you got the path to the training data wrong?

Thanks you are a life saver! :smiley: