Relative Content

Tag Archive for pythonlistdictionary

For loop not looping in dictionnary of lists

I’m trying to tokenize some images to train a HuggingFace model. In the process, I dowloaded and stored locally the images. The path to each of these images have been stored in a dictionnary of lists, in which the key “image_path” contains a list of path (strings) such as “.mypathto.jpeg”. The next step is to use these path one at a time to process these images.