Deployment Platform: Render ✅

correct - if I load and predict using the file on salamander it works as expected.
what I can’t tell is if render is able to pull the file successfully from google drive. When I try to check it manually I get a “no preview available” and download button but thats via browser so not sure if render gets that same screen or a wget or similar just pulls directly.
That’s what I meant about making any changes to server.py to put some debugging on it but then have to remake the entire instance…
I have a windows machine so I’ll check installing linux but the other thing I can do is put the pkl file in an S3 bucket and see if render can load from there.
Thanks for the help!

1 Like

First things to check (I’ve seen):

  • Did you check the sharing settings to with a link?
  • When you tested it on salamander, were you using version 1.0.60? Or the dev version you are using?

Otherwise best of luck :slight_smile:

1 Like

Hi LessW2020

I normally check my google download model by by just putting my link in the browser? if it is working okay the file downloads like any other file…

It is my understanding that if you have a windows machine, anaconda and docker desktop you can create a virtual environment and with docker a unix environment.

I use this stack (I have a mac) for all my models before deploying them anywhere as render.com doesn’t show all the errors that a docker container does.

Cheers mrfabulous1 :smiley::smiley:

Hi hope your having a marvelous day!

Possible actions

  1. Investigate this link New guide for easy web app deployment

  2. build a simple teddy bear classifier on salamander and save pip_list at the same time as the model. deploy on desktop then render. (Prove all software is working).

  3. Make sure the model file is not bigger than is allowed on render.com

  4. If you don’t mind hosting any one of the following, the notebook, the model file with pip list saved into a text file at the same time as the model is saved, or your app on git, I’ll have a look at it, as I think if you go through this thread almost everyone has successfully deployed their first model on render although they don’t stay up long due to cost :smiley::smiley:

Cheers mrfabulous1 :smiley::smiley:

1 Like

I think the issue is google is putting up a ‘viewer’ even though I’ve checked all the ‘sharing’ options I could find.
This is what I get when manually viewing the link - it hits the file then flips to this ‘preview not available’ screen.

The pickle load I realized this morning is likely it’s pulling html and hence the ‘key error’ on < where < looks to me like the opening bracket for html.

Thanks but what is the ‘model size limit’? I searched the docs and there is nothing listed. My pkl for weights is 116MB.

Hi LessW2020 that model size is fine, the basic render app account is I think limited to 500mb total.

Looking at your previous image, having built close to 80 classifiers now this definitely isn’t something that I have seen when downloading.

can you save your pickle file to your hard drive and open it with a browser.

Fierfox looks like this

image
Chrome like this.
image

Aslo if the amount of free space on render.com is not exceeded you can copy our model to the drive and change the setting in server.py and access it directly.

Cheers mrfabulous1 :smiley::smiley:

Uploadinig directly would be a huge help. I can’t make google drive not display the ‘no preview’ and am pretty sure that is what is blocking the download and thus pickle fails b/c it’s loading html and not a file.

I can download/view the pkl file fine on my hard drive so no issue there.

When I go into the render interface I don’t see any option to upload things? Do I have to put it in my github and then it pulls or how to do this? That should be the fix to get this running.

Most likely not. It’s no preview due to it just doesn’t know what to do with that type of file extension. What are the sharing settings on the file itself?

re: sharing - I have it set as “anyone with the link can access, no sign in required”.

1 Like

Hi LessW2020
Whats the link?

Cheers mrfabulous1 :smiley::smiley:

Hi LessW2020

Here is an old classifier that classifies English pound notes £5, £10, £20

https://drive.google.com/uc?export=download&id=12ak8K6dFwVUgKmDLRUPgwt6vB80kr2Cy

Does it open correctly?

cheers mrfabulous1 :smiley::smiley:

HIi @mrfabulous1 - yes that opens as expected (direct to drive).
However, even when I changed my google drive to a ‘download link’ via rawdownload.now.sh, that then generates a "this file is larger than 100MB and google cannot virus check’ error.

Thus, I’m uploading the pkl file to an AWS bucket now and will try that. If you can advise how to upload direclty that would avoid all this interim ‘load here, download but get html there’ issue :slight_smile:

Hi LessW2020
To use use the file directly
save the pkl file in the app directory in the repository and edit the sever.py file as below.

export_file_url = ‘’
export_file_name = ‘dog_breed_34.pkl’

Cheers mrfabuous1 :smiley::smiley:

1 Like

Unfortunately can’t upload if lareger than 25MB:
“Yowza, that’s a big file. Try again with a file smaller than 25MB.”

I’ve put it on AWS S3 so let me try to pull from that.
for reference: https://b5-100-1.s3-us-west-2.amazonaws.com/export.pkl
which does start a normal download as expected.
Thanks!

HiLessW2020
Too bad :cry::sob::cry::sob:
cheers mrfabulous1 :smiley::smiley:

Hi LessW2020

I think Dropbox allows bigger files!

Cheers mrfabulous1 :smiley::smiley:

I can wget the weights with no issue from aws on my server.
However, using the same URL within server.py still yields the pickle error.
Note I tested wget to the google drive link and you just get a ‘view’ object which internally is as expected Html with first char = < : (the message boards are trying to read the html so I use * below where it’s really <
*!DOCTYPE html> … blah blah

@LessW2020 this may be helpful on the google drive bit:

https://webapps.stackexchange.com/questions/123815/how-to-get-direct-download-url-link-for-directory-in-google-disk

3 Likes

Hi LessW2020

Is this a vision classifier?

Can you open the file and see what is inside it and compare it with the link I posted earlier.

The file I sent can be viewed in Textwrangler which is a unix version of Notepad.

It is my understanding that files with the same extension should behave the same.

Cheers mrfabulous1 :smiley: :smiley: