Each link has a csv file that has the image name and the correct y value
The 1423 images are random croppings of the 475 images.
I have a number of images that need a single number generated from the images. The number is the y coordinate of a feature in the image.
Here is an example of an image:
Do you have an example implementation of a regression cnn that achieves this? I am looking at a similar regression problem (predicting some height in pictures). Would be very appreciated!
The key was to create the data bunch properly. once that was done the library took care of everything else.
I have a CSV that lists the image name and the float number i am trying to predict.
making the csv correct format was tricky. some tips: the filename column should not contain the extension. the y column has to be a float.
my csv has 2 columns, “filename” and “y_coordinate”
thanks, this actually worked, though I got extremely strange validation scores all over the place while training (but ending up in a good place in the end). Have you seen similar behaviour?
2 little things, maybe you can edit your post: it is actually cols not col, and I also had to specify the folder because otherwise there was a ‘./’ added in the middle of the path (though that seems a bug in fastai?)
Thanks again!
ah, and metrics always crashed the code, so I had to remove metrics. Did accuracy and error rate work for you? Did you use other metrics you wrote yourself?
(fastai 1.0.28)
Yes!. I got strange loss numbers on validation while training but ended up with what seemed like good numbers though I don’t have the experience at this point to judge if the loss numbers i was getting were good…
As for the metrics I probably passed in None or possibly didn’t even execute that exact line.
As for col vs cols maybe it worked for me because the first column was the image name and the second was the target…I’ll take a look and report back.