overview
# Feedback Image Trainer
A Python package to fine-tune Stable Diffusion models using feedback-driven hyperparameter search with Optuna.
## Installation
```bash
pip install feedback_image_trainer
Usage
from feedback_image_trainer import run_study
run_study(
feedback_file="image_feedback.json",
model_path="runwayml/stable-diffusion-v1-5",
output_dir="fine_tuned_model",
trials=5
)
Input Data Format
The image_feedback.json file should contain a list of dictionaries with the following structure:
[
{
"image_path": "path/to/image.png",
"prompt": "A description of the image",
"feedback": 1
},
...
]
Requirements
- Python 3.8+
- torch>=2.0.0
- diffusers>=0.20.0
- transformers>=4.30.0
- accelerate>=0.20.0
- optuna>=2.0.0
- torchvision>=0.15.0
Metadata
Release files for feedback-image-trainer 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| feedback_image_trainer-0.1.0.tar.gz | 4.1 kB | Without provenance | Details for feedback_image_trainer-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| feedback_image_trainer-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for feedback_image_trainer-0.1.0-py3-none-any.whl |
Total release size: 9.3 kB
Release files / feedback_image_trainer-0.1.0.tar.gz
| Download URL | feedback_image_trainer-0.1.0.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b56c4cd7b4c761799745ee01863b3e2c885dbba0adb20a459dcd613fc5f5bf90
|
|
BLAKE2b-256 checksum How to use checksums |
a3b3b81655ab8369dc279534f0a22972d45b3cc36d152503d8445428412be077
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.6
|
Release files / feedback_image_trainer-0.1.0-py3-none-any.whl
| Download URL | feedback_image_trainer-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
558d6e682fc9e287d572b887fa32990c23272fc0a5df13d651390558e9eae21c
|
|
BLAKE2b-256 checksum How to use checksums |
cf9ef3281d3b4e0f7286622d90a660dbfb8163eae8a1a7c9002cb25060037915
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.6
|
Security for feedback-image-trainer 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.