Deployment Platform: Render ✅

Hi all!

After hours of hard work trying to deploy my model using Render’s service, I finally was able to get my model up and running!

I built my model using the latest version of fastai (2.2.5)

Here are the problems I ran into and how I fixed it:

  1. In the original repo: (GitHub - render-examples/fastai-v3: Starter app for fastai v3 model deployment on Render), line 35: learn = load_learner(path, export_file_name) throws an error. This is due to how export and load_learner methods work in the new version of fastai. To fix this I switch line 35 with the following:

learn = load_learner(path/export_file_name)

  1. I ran into an error using the ‘load_image’ when deploying to Render:

This is because in the newest version of fastai load_image returns an PIL.Image.Image object instead of a PILImage object. I suggest that if you are using the newest version of fastai and are trying to deploy using Render, replace 'load_image() with PILImage.create().

This final tip is really coming from @mrfabulous1 who strongly suggest that you run everything locally before trying anything out on Render. This helped me a million. Having Anaconda installed also help set up my environment so I don’t have worry if my environment is clashing with each other.

sources: Deployment Platform: Render ✅ - #30 by PierreO

1 Like