Error while attempting to one_batch: "Could not infer dtype of PILImage" (SOLVED)

I have tried reinstalling everything with conda instead of pip, and that seemed to have fixed the problem. It looks like my issue was because of package versions too