Random sample from PrefetchDataset 07_Food_vision_big #150
Unanswered
Natali-bali
asked this question in
Q&A
Replies: 1 comment 12 replies
-
Hey @Natali-bali, I was also trying to figure out this. I used this below code for my project :
Here's a simplified version :
|
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello again, we used .take(1) method to check one (first) element from PrefetchDataset (format of downloaded data from tfds).
If i use take(10) it would return TakeDataset with 10 first elements from PrefetchDataset.
My question is how i can get 10 random elements from PrefetchDataset?
Thanks a lot)
Beta Was this translation helpful? Give feedback.
All reactions