ptrstpp950/photoAi

Just some fun with AI

Python

0

1 commits

updated May 31, 2025

See the code

README

My Flux Project

This project utilizes the Flux model from Hugging Face's Black Labs to generate images using a Safetensors file.

Project Structure

my-flux-project
├── src
│   ├── main.py        # Entry point of the application
│   └── utils.py       # Utility functions for image generation
├── requirements.txt    # Project dependencies
└── README.md           # Project documentation

Setup Instructions

  1. Clone the repository:

    git clone <repository-url>
    cd my-flux-project
    
  2. Install the required dependencies:

    pip install -r requirements.txt
    

Usage

To generate an image using the Flux model, run the following command:

python src/main.py

Make sure to have your Safetensors file in the appropriate directory as specified in the main.py file.

Dependencies

This project requires the following Python packages:

  • transformers: For loading the Flux model.
  • torch: For tensor operations.
  • PIL: For image processing.

Notes

Ensure that you have the necessary permissions and licenses to use the Flux model and the Safetensors file.

Download Safetensors

To download the Safetensors file, you can use the following command:

# IKEA
wget https://civitai.com/api/download/models/883789?type=Model&format=SafeTensor
# Action figure
wget https://civitai.com/api/download/models/832651?type=Model&format=SafeTensor

ptrstpp950/photoAi

Just some fun with AI

Python

0

1 commits

updated May 31, 2025

See the code

README

My Flux Project

This project utilizes the Flux model from Hugging Face's Black Labs to generate images using a Safetensors file.

Project Structure

my-flux-project
├── src
│   ├── main.py        # Entry point of the application
│   └── utils.py       # Utility functions for image generation
├── requirements.txt    # Project dependencies
└── README.md           # Project documentation

Setup Instructions

  1. Clone the repository:

    git clone <repository-url>
    cd my-flux-project
    
  2. Install the required dependencies:

    pip install -r requirements.txt
    

Usage

To generate an image using the Flux model, run the following command:

python src/main.py

Make sure to have your Safetensors file in the appropriate directory as specified in the main.py file.

Dependencies

This project requires the following Python packages:

  • transformers: For loading the Flux model.
  • torch: For tensor operations.
  • PIL: For image processing.

Notes

Ensure that you have the necessary permissions and licenses to use the Flux model and the Safetensors file.

Download Safetensors

To download the Safetensors file, you can use the following command:

# IKEA
wget https://civitai.com/api/download/models/883789?type=Model&format=SafeTensor
# Action figure
wget https://civitai.com/api/download/models/832651?type=Model&format=SafeTensor