Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

load a .h5 trained model directly from GCS ?

Hello, it's the fist time I actually try to put in a production environment a locally trained .h5 model. I have a website hosted on a cloud run container and I'm trying to run an Image processing pipeline every-time a file is uploaded to GCS via the website (that's why I want to use a cloud function that triggers when a new file is created).

my issue:

I have found a way to load my .h5 model from GCS but It's taking way too mush time and I'm sure there's surely a better way to do what i'm trying to do:

YorelNation_1-1645444535756.png

almost 1 minute to load on my local machine. Do you have any recommendation on how to trigger the prediction of my trained model + (pre/post processing) easily upon file upload from my website (in a serverless context) ?

0 4 1,342
4 REPLIES 4