Closed prabhant closed 2 years ago
Hi @prabhant, I am facing a similar issue. Did you have any luck with getting around this?
Hi @sachitsaksena. The problem here is that otdd expects the targets to be contiguous integers with no gaps between them. In this case, there's lots of gaps:
print(ds1.targets.unique())
tensor([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 15, 16, 20])
This is easily solved by reindexing, e.g., map the labels to {0,..,14} in this case.
Thanks for the help!
Code: