Infinity / app.py

Commit History

Enhance image generation function by initializing random number generator for device-specific operations; update markdown instructions for clarity and improve HTML header formatting
55002dc
Running

MohamedRashad commited on

Refactor load_tokenizer function to include error handling and device optimizations; streamline model loading process and improve memory management
eecb045

MohamedRashad commited on

Enable bf16 in load_infinity function and enhance transform function with type hints and error handling; refactor joint_vi_vae_encode_decode for improved performance and error management
366fd1c

MohamedRashad commited on

Set CUDA launch blocking environment variable for improved debugging
27e1ebb

MohamedRashad commited on

Add CUDA availability check for input IDs and attention mask in prompt encoding
7434833

MohamedRashad commited on

Refactor image generation process by removing gen_one_img function; streamline prompt encoding and inference steps
5c095cd

MohamedRashad commited on

Fix indentation in load_infinity function for better readability
e5b7e3e

MohamedRashad commited on

Remove unused image enhancement functions to streamline image processing
14626ab

MohamedRashad commited on

Enhance Gradio interface with detailed instructions and a custom HTML header for the Infinity Image Generator
aaa0ff6

MohamedRashad commited on

Refactor encode_prompt function by removing enable_positive_prompt parameter and related logic; streamline image generation process
715c7b0

MohamedRashad commited on

Remove cache_enabled parameter from autocast context in load_infinity function for cleaner implementation
920cc4d

MohamedRashad commited on

Remove device initialization and logging from load_transformer function; set device parameter to None for flexibility
8e360af

MohamedRashad commited on

Make device optional in load_infinity function; set default to 'cuda' or 'cpu' based on availability and adjust autocast dtype handling
8e9da2c

MohamedRashad commited on

Enhance Infinity model loading by specifying device type in autocast context for improved performance
2d4f4be

MohamedRashad commited on

Optimize Infinity model loading by clearing CUDA cache and adjusting device assignment; remove redundant calls
9914b63

MohamedRashad commited on

Add device and dtype logging in app.py for better debugging
54f9225

MohamedRashad commited on

Refine prompt enhancement guidelines in app.py to focus on visual and sensory features; clarify output structure and examples
c493a61

MohamedRashad commited on

Add prompt enhancement functionality and integrate Gradio client in app.py; update requirements.txt
836dd96

MohamedRashad commited on

Refactor app.py to improve UI layout and rename weight download function; update import path for AutoEncoder in vae.py
f7f1ca1

MohamedRashad commited on

Remove redundant text encoder model download and update tokenizer path in app.py
041b736

MohamedRashad commited on

Install flash-attn package with subprocess in app.py
1ce0fc2

MohamedRashad commited on

Add initial project structure with requirements and utility functions
32287b3

MohamedRashad commited on