This project is developed using Python v3.10. The complete Python dependency packages can be found in requirements.txt.
Here are the detailed installation instructions (using Ubuntu operating system as an example):
mkdir -p ~/miniconda3
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh
bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
rm -rf ~/miniconda3/miniconda.sh
After the installation is complete, it is recommended to create a new Python virtual environment
named cogview3-demo
.
conda create -n cogview3-demo python=3.10
conda activate cogview3-demo
You will need to activate this environment every time you use it.
pip install -r requirements.txt
streamlit run --server.address 127.0.0.1 image_generate_demo.py
You can now view your Streamlit app in your browser.
Access through the awakened browser
This project is licensed under the terms of the Apache-2.0 license. See the LICENSE file for more details.