I worked on a GUI that I wanted to share. The aim was to provide an easy to use graphical interface without the need to dig deep into the code, and provide all aspects of choosing and viewing parameters and outputs within 1 line of sight. This easy to implement GUI provides a good starting point to get training quickly using fastai.
A couple of additions made to the visual_UI. A results tab was added so that a trained model can be loaded and view the results by plotting top losses or confusion matrix (this is still a work in progress), hoping to get better functionality so that it is super easy to use fastai via a GUI.
Hi Amrit, your visual UI project is super cool! At the moment, Iâm able to launch it successfully, but every time Python3 launches a new window, for example, to select a folder, it freezes the machine, and I need to Force Quit. Have you encountered anything like this? Could it be an issue with my browser (Firefox)? Do you have any suggestions on what may be the issue? Thanks @amritv ! Looking forward to experimenting with it!
You should see a dialogue to choose a folder and after you have chosen it the dialogue box should disappear. Let me know if that works. If so I have updated the vision_ui code with a few updates so try it with the new version.
Thanks @amritv Iâll give it a try and let you know! If that doesnât work, Iâll also see if switching browsers solves the problem for me. Thanks again!
Hi @amritv I tried a few different things and it still doesnât work for me. It always freezes up right after I select the folder. I tried the code you provided and reinstalling fastai (dev) and Vision_UI a few times, but no luck. Iâll continue to think of what might be off on my side. Thanks again! Iâll be keeping an eye out for updates!
I unfortunately do not use paperspace so cannot be fully certain about this but the same issue occurred when this was run on Colab.
Tk creates a new window in order to display the box to choose the folder. Because Colab is run on the cloud it cannot open a new window This resulted in the same error (and assuming that is the reason for the error in Paperspace) so I had to adapt the Colab version (Fastai graphical user interface for Google Colab) and use another method of choosing your folder. This version may not work on Paperspace as it uses Google.colab.widgets.
I modified the code and would really appreciate it if you can try it now on paperspace. Like I mentioned I have not tested it on paperspace but the path can now be set by âcoping and pastingâ. This should for the time being by-pass the need for using tkinter.
In CollabDataBunch , pct_val is renamed valid_pct for consistency
ImageItemList becomes ImageList for consistency with TextList and TabularList
load_learner will fail for exported (pickled) models with error âAttributeError: Canât get attribute âImageItemListâ on module âfastai.vision.dataââ. You will need to re-export with version 1.0.46 or use 1.0.44
ImageList is defined under data.py in the vision folder. Any way you can check to see if it is defined there?
Iâm not sure if you are already doing this but it would be valuable to get the code exported to the cell. So for example if someone makes some augmentations and model it could be seen as a code in the cell. This way everyone could use this as a starting point because it is writing the basic code and then they could customize it anyways because itâs written in normal Python.
The goal of Visual GUI was really to move away from the coding proponents but this is an interesting proposition. An addition of a button to view the code can be added. Will look into it - thanks for the suggestion