Hi I am facing issues in importing libraries and have mentioned all the modules required in the requirements.txt file but I still keep facing issues
I cant share my source code link due to privacy reasons but this is my requirements file: streamlit #pymongo #boto3 matplotlib #pyyaml
I am also able to run the same code locally without any import issues, this is specifically showing up in the app.Can someone help me with solving this issue?
Once you do that, also make sure to create a packages.txt folder in the root of your repo containing an entry for libgl1 – otherwise you’ll run into a ImportError: libGL.so.1:
After those two changes, calling the object detection script from a subprocess should work.
Thank you! Do you know any way in which I can run a training job for yolov7 via streamlit? I’m new to ML ops and would like to know if there are ways to automate this.
Good question I wouldn’t recommend running a training job on Community Cloud due to its resource limitations in terms of CPU, RAM, and no current GPU support:
Your app would run out of memory and crash while loading the weights into memory. Community Cloud is best suited to showcase a trained model via inference (ideally via an API call to an external inference endpoint unless it’s a tiny, distilled model optimized for CPU and low memory usage).
You could connect to an external cloud training provider like Snowflake, AWS, GCP, etc, train your model there, set up an inference endpoint, make API calls via your Streamlit app on Community Cloud, and display the returned predictions within the app.
Yes! I was looking into those options, is there a way to trigger the training via streamlit though? I dont want to train in using streamlit because of the resource limitations, I wanted to trigger the training using API calls. Do you know how this is possible? As far as i have researched free GPU resources like kaggle and google collab dont support this type of api call.
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.