Skip to content

Generate images using Zhipuai's CogView3 model based on user input prompts.

License

Notifications You must be signed in to change notification settings

SyloYamtao/cogview3-generate-image-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setting up the Runtime Environment

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):

Installing Miniconda

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

Activate the environment

conda activate cogview3-demo 

You will need to activate this environment every time you use it.

Installing Python Dependency Packages

Run the following command in the cogview3-demo directory

pip install -r requirements.txt

Running the Project

streamlit run --server.address 127.0.0.1 image_generate_demo.py

Successful Startup

You can now view your Streamlit app in your browser.

Access through the awakened browser

Page

img.png

License

This project is licensed under the terms of the Apache-2.0 license. See the LICENSE file for more details.

About

Generate images using Zhipuai's CogView3 model based on user input prompts.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages