AWS Lambda with Docker – revisited

There are various ways to leverage docker to develop AWS lambda serverless functions. One recent method is to deploy Python Lambda functions with container images (as specified here). Another method is to develop the Lambda package from within an Amazon Linux docker container and then upload it to AWS Lambda (more details here). A summary …

Continue reading ‘AWS Lambda with Docker – revisited’ »

Linux on Windows 10 via Docker

Wanting to run Linux command line under windows usually brings you to one of two options: Install WSL (Windows Subsystem for Linux) – the main advantage here is performance optimizations made by Microsoft to take the most advantage of the hardware and OS infrastructure. Install Docker for Windows 10 and then create a Linux container …

Continue reading ‘Linux on Windows 10 via Docker’ »

Training “cat or dog” on Windows without GPU

I was curious to see how much slower the training of chapter 1 of fast.ai would be on my GPU-less home desktop vs. a basic cloud GPU servers. The first issue was to get the code running after installing torch, torchvision and fastai modules. Apparently, there are some code modifications to make to get things …

Continue reading ‘Training “cat or dog” on Windows without GPU’ »

cannot import name ‘mobilenet_v2’ from ‘torchvision.models’

This was the error I received when trying to import fastbook to study the excellent fast.ai course. I had Python 3.9.1 installed and used pip to install the latest versions of torch, torchvision, and fastai To spare the reader from boring war stories, here’s the bottom line: Download the latest version of torchvision for your …

Continue reading ‘cannot import name ‘mobilenet_v2’ from ‘torchvision.models’’ »