Categories
Misc

Best way to map Text and Image while loading the data

Best way to map Text and Image while loading the data

I have a csv file which looks somewhat like the photo in the post.

I’m building a model that takes both image and its corresponding text (df[‘Content’]) as input .

I wanted to know the best way to load this data in the following way:

  • Loading the images from df[‘Image_location’] into a tensor.
  • And preserving the order of the image to the corresponding text.

Any ideas on how this can be done?

https://preview.redd.it/q4km9ape2rg81.png?width=700&format=png&auto=webp&s=66be88e9b8d5ebbd7d9357cf64bbe1ea7866b098

submitted by /u/xanthan_011
[visit reddit] [comments]

Leave a Reply

Your email address will not be published. Required fields are marked *