Problem with CacheDataset #3890
Replies: 5 comments 3 replies
-
Hi @vikashg , May I know the format of your Thanks. |
Beta Was this translation helpful? Give feedback.
-
Hey @Nic-Ma The images are .jpg images. Also just another point I ran the same code without the cache dataset function and it worked. I just confirmed that the training images are indeed path strings. I printed them. Here is a snippet
Well another weird thing is that I have written a small function to check data integrity where I load the files using the data loader. If they can be loaded then i use those images for training. So, I can read all the images using monai. The problem only arises when I use Thanks |
Beta Was this translation helpful? Give feedback.
-
Hi @vikashg , Could you please help provide the full test program and some sample images or random images for test? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
-
This is probably a usage question train_ds = CacheDataset(
data=TrainDataset(training_images, training_labels, temp_transform),
transform=temp_transforms,
... The |
Beta Was this translation helpful? Give feedback.
-
Hi @wyli and @Nic-Ma, So I tried running CacheDataset after making the changes discussed. I still get this error
My code is here just in case you want to have a look. Any suggestion on what I am missing here |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have been using the tutorials to try and implement CacheDataset. However, I am receiving an error when trying to apply a transform to an image while using CacheDataset. The specific error I am receiving is:
This is currently how I am trying to implement CacheDataset:
I am using .jpg images
Beta Was this translation helpful? Give feedback.
All reactions