28 March 2019

ML on my ole MacBook Pro, and a photography anecdote.

So, i installed keras on my macbook, and built and ran a CNN.

14 hours later... It failed with an error I lost.

This is less than ideal!

Also, my MacBook is now starting to show it's age (though it's no slouch - Mid 2012 Retina, core i7 dual proc, 16GB ram) - it's just getting a bit long in the tooth.

I later realised the error was nothing to do with tensorflow or keras, but was down to me missing () from time.time() when i was checking how long the cnn train took. Oops.

Still 14 hours when I'm trying to learn about CNNs isn't good. It reminds me of a point someone once made about photography. If you want to improve your photography skills and you are using a film camera, then you need to take a lot of photo's and copious notes on each of them. You then develop them (either at home or send to a lab, either way there's a significant delay).

You get your prints, and then compare each one to your notes. What was the aperture, the ISO, where was the light source and how strong? What was my focus point, and how deep was my focus? What film was I using and do the negatives match the prints? Also - what was i actually trying to do, beyond all the technical stuff. What was the intent?

With a digital camera you either:
 - Set aperture, iso, anything else you want to tweak. Focus where you want. Take a photo. Look at it. And possibly pull up all the details of the settings from the image itself. If you want more control you has the camera set to raw, and converted to jpeg, and you can tweak that (just as you would negative -> print). You probably remember the intent because it wasn't that long ago you took the photo.
OR
You set the camera to auto (because it is probably better than you in most circumstances), frame your image. Take the photo. Look at it. (I once when on a creative photography course run by a very good, and creative, fashion photographer. For most of the homework sessions we had his instructions where to leave the camera in auto and concentrate on framing your image - a modern camera is better than you at getting things right, at least until there are specific images and effects you want to achieve).

Anyway, large digression. Waiting a day to see what happened is not as good as waiting till a bit later. Especially if the only time you really get to study is the weekend.

So - let's see if we can do something else.

No comments:

Post a Comment

And now for a little Cthulhu

I decided to have a little play with word clouds... I found a nice wordcloud library ( https://github.com/amueller/word_cloud ), and a com...