Create an app to generate images given a text prompt or an image input. It uses Diffusers library to perform generative tasks such as text-to-image or image-to-image.
☑️ Step 1: Create Virtual Enviroment
py -3.12 -m venv .venv
☑️ Step 2: Activate Virtual Enviroment
.venv\Script\activate
☑️ Step 3: Install dependencies.
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128
pip install transformers
pip install diffusers
pip install accelerate
pip freeze > requirements.txt
☑️ Step 4: Link my local repository to my Github remote repository
```bash
git remote add origin https://github.com/estelacode/generative_image_lab.git
git remote -v # Verify the remote repository is added
☑️ Step 5: Add first commit and push the current branch and set the remote as upstream
git add README.md
git commit -m "README.md"
git push --set-upstream origin master
git push -u origin master
☑️ Step 6: Create the package
pip install -e .
ptyhon main.py
Image Generative Libraries:
Models: