generative-models
streamlit
generative-models | streamlit | |
---|---|---|
21 | 258 | |
22,508 | 32,051 | |
4.4% | 3.0% | |
7.3 | 9.8 | |
29 days ago | 5 days ago | |
Python | Python | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
generative-models
-
Creating Videos with Stable Video Diffusion
git clone https://github.com/Stability-AI/generative-models.git && cd generative-models
- Show HN: I have created a free text-to-image website that supports SDXL Turbo
- How To Increase Performance Time on MacOS
-
Introducing Stable Video Diffusion: Stability AI's New AI Research Tool for Image-to-Video Synthesis
Generative Models by Stability AI Github Repository
-
image-to-video tutorial
# clone SD repo !git clone https://github.com/Stability-AI/generative-models.git # cd into working directory # the % sets the pwd globally as usually each command is run in a subshell in google colab %cd /content/generative-models/ # installing dependencies !pip install -r requirements/pt2.txt !pip install . # HACK # I was getting ModuleNotFoundError: No module named 'scripts' # This is what ChatGPT suggested (let me know if there is a better way) file_path = '/content/generative-models/scripts/sampling/simple_video_sample.py' new_text = "import sys\nsys.path.append('/content/generative-models')\n\n" with open(file_path, 'r') as file: original_content = file.read() updated_content = new_text + original_content with open(file_path, 'w') as file: file.write(updated_content) # Need to create a checkpoints/ folder - that is where the system looks for weights import os dir_name = 'checkpoints' if not os.path.exists(dir_name): os.makedirs(dir_name) print(f"Directory '{dir_name}' created") else: print(f"Directory '{dir_name}' already exists") # Download weights into checkpoints/ folder from huggingface_hub import hf_hub_download hf_hub_download(repo_id="stabilityai/stable-video-diffusion-img2vid", filename="svd.safetensors", local_dir="checkpoints", local_dir_use_symlinks=False) # I can't remember if this step is needed but it aims to reduce the memory footprint of pytorch # I kept getting CUDA out of memory # I got these instructions from the out of memory error message os.environ['PYTORCH_CUDA_ALLOC_CONF'] = 'max_split_size_mb:512' print(os.environ['PYTORCH_CUDA_ALLOC_CONF']) # Inside of scripts/sampling/simple_video_sample.py you need to make 2 updates 1. input_path (line 26): update to the location of your file (I attached Gdrive so mine was "/content/drive/MyDrive/examples/car.jpeg" 2. decoding_t (line 34): update it to 5. you need to do this for memory preservation (CUDA out of memory). I'm not sure if 5 is the best value but it worked for me # Finally generate the video (output will be in the outputs/ folder) !python scripts/sampling/simple_video_sample.py
-
Stable Video Diffusion
It looks like the huggingface page links their github that seems to have python scripts to run these: https://github.com/Stability-AI/generative-models
- GitHub - Stability-AI/generative-models: Generative Models by Stability AI
-
How does ComfyUI load SDXL 1.0 so VRAM-efficiently? How do I do the same in vanilla python code?
However, when using the example code from HuggingFace or setting up stuff from the StabilityAI/generative-models repo in a jupyter notebook, I end up using 21 GB of VRAM just for running the default pipeline (with no base model output). If I try to run the extra `base.vae.decode(base_latents)` after generation to get unrefined outputs, I get a CUDA out of memory error as it blows past the 24GB of my NVIDIA RTX 3090.
- SDXL 1.0 is out!
-
SDXL 0.9 Anyone having luck NOT centering subjects?
SDXL uses cropping information as part of the conditioning. Images were randomly cropped during training and the coordinates of the crop were included as two integers at the end of the conditioning vector. If you're using ComfyUI you can use the CLIPTextEncodeSDXL node to specify where the upper left corner of the image should appear to be in relation to some hypothetical uncropped image. Here's a figure with examples from the report on SDXL:
streamlit
-
Developing a Generic Streamlit UI to Test Amazon Bedrock Agents
I decided to use Streamlit to build the UI as it is a popular and fitting choice. Streamlit is an open-source Python library used for building interactive web applications specially for AI and data applications. Since the application code is written only in Python, it is easy to learn and build with.
-
Creando Subtítulos Automáticos para Vídeos con Python, Faster-Whisper, FFmpeg, Streamlit, Pillow
Streamlit (https://streamlit.io/)
-
PySheets – Spreadsheet UI for Python
Does it need to be live (i.e when database or underlying spreadsheet updates does it need to be reflected in real time on the dashboard) or are you ok with static display.
Live updating data is a pain I've messed around using javascript to force refresh html iframes on a timer. But I was never really satisfied with this. I've heard you can do things with websockets but that is starting to get too complicated for me (I'm not a programmer).
For static stuff one of the data scientists in my org pointed me to Streamlit (https://streamlit.io/) it's a python package I found very easy to use. Can easily combine SQL with CSV imports and display them all on one dashboard. Can use forms toggle butotns etc to control the display.
-
Building an Email Assistant Application with Burr
Note that there are many tools that make this easier/simpler to prototype, including chainlit, streamlit, etc… The backend API we built is amenable to interacting with them as well.
-
Creating a Sales Analysis Application with Streamlit: A Practical Approach to Business Intelligence
2.-Go to https://streamlit.io, log in, and create a new app from your GitHub repository.
-
🦙 Llama-2-GGML-CSV-Chatbot 🤖
Developed using Langchain and Streamlit technologies for enhanced performance.
-
Python dev considering Electron vs. Kivy for desktop app UI
Hello,
Have you ever seen the https://streamlit.io/ ? I think this is what you are looking for.
-
Show HN: Buefy Web Components for Streamlit
While building dashboards in Streamlit, I found myself really missing Buefy's (Bulma) modern web components.
Specially due to the inability to add new values to Streamlit's multiselect [1], some missing controls like a polished image carousel [2] or a highly customizable data table.
Long story short, we put together streamfy (Streamlit + Buefy) as an MIT licensed project in GitHub to bring Buefy to Streamlit.
Demo: https://streamfy.streamlit.app
All the form components are implemented, missing half of other non-form UX components. There is plenty of room for PRs, testing, feedback, documentation, example, etc.
Please send issues and contributions to GitHub project [3] and general feedback to X / Twitter [4]
Thanks!
[1] https://github.com/streamlit/streamlit/issues/5348
-
Simplify Web App Development: Code Lite, Create Big!
Here's your savior, let's welcome Streamlit.
-
Show HN: Hyperdiv – Reactive, immediate-mode web UI framework for Python
Looks cool. How do you see this differing from streamlit? https://streamlit.io/
What are some alternatives?
background-removal-js - Remove backgrounds from images directly in the browser environment with ease and no additional costs or privacy concerns. Explore an interactive demo.
PyWebIO - Write interactive web app in script way.
wizmap - Explore and interpret large embeddings in your browser with interactive visualization! 📍
gradio - Build and share delightful machine learning apps, all in Python. 🌟 Star to support our work!
evernote-ai-chatbot
nicegui - Create web-based user interfaces with Python. The nice way.
gping - Ping, but with a graph
superset - Apache Superset is a Data Visualization and Data Exploration Platform
graphic-walker - An open source alternative to Tableau. Embeddable visual analytic
reflex - 🕸️ Web apps in pure Python 🐍
xgen - Salesforce open-source LLMs with 8k sequence length.
PySimpleGUI - Python GUIs for Humans! PySimpleGUI is the top-rated Python application development environment. Launched in 2018 and actively developed, maintained, and supported in 2024. Transforms tkinter, Qt, WxPython, and Remi into a simple, intuitive, and fun experience for both hobbyists and expert users.