eIQ toolkit import images from disc and managing them afterwards

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

eIQ toolkit import images from disc and managing them afterwards

2,902 Views
MarcinChelminsk
Contributor IV

Hello!

I just started to play around with eIQ toolkit, and have a question in regards to importing images from local disc drive and managing them afterwards. I was able to import few of them, however I have no idea how to manage the imported images. The questions are:

  1. how can I deleted all the imported images? I can do that one-by-one by hitting the 'x' mark in the right upper corner of each image however it does not seem comfortable way. Is there any way to select all the images in the way Ctrl+A does?
  2. is there any way to import images from already labeled folders? for example I have dataset divided into few folders (name of each folder = corresponding label) and what to do import images from each folder to eIQ toolkit and give them label automatically? I believe it could be really painful to label again the dataset which is already labeled
  3. I do not see any constraint about adding images with the same name, for example I have added few images (let's say 20 images), and afterwards added the same 20 images, so sum now in eIQ toolkit is 40 however there are doubled, I believe it could be helpful to be aware that we have duplicated images in the imported dataset
  4. I have imported few images and I think would be good to keep and show their names, I have big number of images which are very similar and it is really hard to distinguish if they are the same or bit changed (or duplicated, please see point 3.), so the name of the image could be helpful
  5. when I hit particular image and give him a label (`full image label` option) and click right arrow to go to next image I get almost every time error such as:Capture.PNG
  6. when I am in labeling process, there would be good to see how many images left to be labeled
  7. when I hit `unlabeled images` and choose first to label it is OK to see `No labels yet`, I am adding label, and hit right arrow to go to next image (I believe still from unlabeled portion of dataset`) and unfortunately I see image already labeled which is bit confusing in my opinion, I want to label images which are not labeled, and seems that hitting right arrow chooses next image from whole dataset? I do not know

Thank you very much in advance for your support, I believe the tool is very promising!

2 Replies

2,771 Views
MarcinChelminsk
Contributor IV

Hi Anthony,

thank you very much for your support!

In reference to 2., thank you very much for pointing me that out, it turned out really helpful. In addition to this, I have modified the original notebook Structured Folders Importer.ipynb and tailored it to read images from subfolders which names corresponds to labels and each subfolder contains whole bunch of images corresponding to particular label. Splitting imported images is done in the code, so no manual efforts are required to achieve train/test folders. You need to notice that installing scikit-learn in your virtual environment is required to use this splitting functionality:

 

pip install scikit-learn

 

Hope that might be helpful, please see attached. As .ipynb extension is not supported here, I am adding .zip archieve

 

2,880 Views
anthony_huereca
NXP Employee
NXP Employee

Hi Marcin,

  Thanks for the feedback. Let me address your questions one by one: 

1) Right now there is not a way to do that with the eIQ Portal tool but that is something we can implement in future update. 

2) You can use the Jupytr notebook at C:\nxp\eIQ_Toolkit_v1.0.5\workspace\importer\Structured Folders Importer.ipynb to import images from a folder structure. There's a lab document that goes through step-by-step how to use that here: https://community.nxp.com/t5/eIQ-Machine-Learning-Software/eIQ-Portal-for-MCU-Getting-Started-Labs/t...


3) There are no constraints about importing files with the same name as some datasets may have them labeled as "1.jpg", "2.jpg" and separated by folder. Thanks for the feedback on that though. 

4) Thanks for the feedback and we'll look at adding that in the next update. 

5) We'll get that fixed in the next update. 
6) You can see the number of images left unlabeled in this highlighted section: 

anthony_huereca_0-1625847055407.png

 

7) We'll fix that in the next update. 

Let us know if you have any more questions! 
-Anthony 

0 Kudos