-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
training on grayscale images #6
Comments
|
@MasterScrat @mar-muel it would be great if you guys could make a training notebook as well , keeping the above issue in mind , that way users could train this model using kaggle TPU or colab |
Hi @GeorvityLabs - Indeed the code is not in a very mature state. The error you experience is because your images don't have 3 dimensions. You can either reshape your greyscale images to have a third dimension or just hardcode channels to 1 in the script. The training code should in theory support grey scale image training, however this was not yet tested. |
I made a simple training notebook , so as to run on colab tpu, but there seems to be some issue with regards to connecting with the tpu. I've linked my notebook here , could you have a look and check if you are able to train on images at your end : |
Hi @GeorvityLabs - we've just made a new release, which comes with an (experimental) Colab training notebook. However, Colab TPUs are an older generation TPUs compared to TPU VMs and training is fairly slow unfortunately :( |
Thanks for the update. |
Really depends on the subjects and resolution, but I would argue you need 5k examples for a good model at the very least. Regarding training time we noticed improvements even after several days of training (however marginal). From scratch training at 512 resolution took on the order of 2-3 days at least. You may also want to check out our W&B report. |
Thanks for the reply. |
That's definitely too small. You may want to look for pre-trained models or models which cover your mode at least partially. Also check out LAION/img2dataset to get to a decent sized dataset. |
Got it. |
i have a dataset of grayscale images and wanted to train on it.
do you have any suggestions on how to get this working with grayscale input images.
currently, when trying to create a tfrecord ,
i'm getting the following error :
The text was updated successfully, but these errors were encountered: