I managed , for most part, deployed my app to Streamlit cloud and ended with the following message.
2022-01-14 08:52:14.477940: I tensorflow/core/platform/cpu_feature_guard.cc:151] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA. To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
I wasn’t sure what to do with it, and ran my application ( GitHub - Ipomoeabatatas/TiHar ).
The app was suppose to identify changing human action in a video clip with labels constantly over it.
As I run it, I get the error below.
It is not related with tensorflow but with with the rendering of the image. I assume you have somewhere a st.image(some_numpy_image) which is causing the InMemoryFileManager error. How did you deploy it? I deployed a streamlit app to Google Cloud Run (serverless) and was having the exact same problem that you are having, unfortunately couldn’t manage to solve it. It seems that (at least with Cloud run) different machines can be spawn so the image is generated in one machine and other tries to serve it, see this same issue: MediaFileManager: Missing file on Google App Engine · Issue #3334 · streamlit/streamlit · GitHub
I manage to solve it by deploying it to just a single machine.
After a lot of trying it was also solved in Cloud Run by setting Maximum requests per container to a high value and vCPU=1
Another ugly option it worked for me before finding the other solution was by uploading the image you want to render to a persistent storage (like GCP Cloud storage) and return the URL to it instead of the numpy array.
I think you are absolutely right that this is not a Tensorflow problem.
Yes, I am using a st.image on a frame that was extracted using a Video using CV2.
I’ve depoy to Streamlit Cloud and Heroku and get the same dismay results.
Let me try out the workaround that you are suggesting !
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.