Previously, I put my sample code in one of my private repository, the repo becomes like a chaos and impossible to manage, and becomes unreadable (not mention execution it again) gradually.
So that decide to setup this public repository to host all of my daily sample code with better structure and comments.
More sample code in my book.
If you want to run some of the code from this repo, to avoid messing up your Python runtime, you'd better setup a virtual python environment and install the packages list in requirements.txt
file.
Install azailib
tool
pip install -U git+https://github.com/xhinker/azailib.git@main
Install sd_embed
for unlimited size Diffusion prompt embedding generation
pip install -U git+https://github.com/xhinker/sd_embed.git@main
- Stable Diffusion 1.5, see code in folder:
diffusion_models/sd15
- Stable Diffusion XL, see code in folder:
diffusion_models/sdxl
- Stable Diffusion SD35, see code in folder:
diffusion_models/sd35
- Flux.1, see code in folder:
diffusion_models/flux
- Florence2, see code in folder:
segmentations/florence2
- GroundingDino: see code in folder:
segatmentations/grounding_dino
- Remove Object & Waters from image - LaMa Inpaint:
ai_models_eval/lama_inpaint