universal-data-tool
universal-data-tool copied to clipboard
Special characters in an image filename causes loading issue
Perhaps not exactly a bug, but maybe call out in the docs?
Using v0.14.8 on Ubuntu and v0.14.7 on MacOS I had trouble importing files from directory.
Each filename was similar to this:
file:///home/username/Documents/open-uri20181017-3144-12j85x7?3F1539820206.jpg
These files did not load in UDT for labelling. The import tool showed the correct count in the number of samples, but when labelling, the image area was a broken image icon. My first check was to see if they would open in a browser window. I went to the file, right clicked, chose "Open with Other Application" : "Firefox". The browser opened the image just fine. I thought the image files were good and went back to the docs to find another cause.
However, on closer inspection, When opening the file from the desktop, the filename had changed slightly in the browser:
file:///home/username/Documents/open-uri20181017-3144-12j85x7**%**3F1539820206.jpg ("?" -> "%")
I copied the path of a file from directly from the terminal with the original "?" and pasted it into the browser. The file would not open.
Filename was the issue. Perhaps, Firefox or the OS is doing something to correct for special characters when opening in a browser.
I renamed all the files removing the special characters and things worked smoothly.