Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
---
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
## Resources
|
| 7 |
+
- [Website](https://jialuo-li.github.io/Science-T2I-Web/)
|
| 8 |
+
- [arXiv: Paper](https://arxiv.org/abs/2504.13129)
|
| 9 |
+
- [GitHub: Code](https://github.com/Jialuo-Li/Science-T2I)
|
| 10 |
+
- [Huggingface: SciScore](https://huggingface.co/Jialuo21/SciScore)
|
| 11 |
+
- [Huggingface: Science-T2I-S&C Benchmark](https://huggingface.co/collections/Jialuo21/science-t2i-67d3bfe43253da2bc7cfaf06)
|
| 12 |
+
- [Huggingface: Science-T2I training set](https://huggingface.co/datasets/Jialuo21/Science-T2I-Trainset)
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
## Quick Start
|
| 16 |
+
You can use `FluxPipeline` to run the model
|
| 17 |
+
```python
|
| 18 |
+
import torch
|
| 19 |
+
from diffusers import FluxPipeline
|
| 20 |
+
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16).to('cuda')
|
| 21 |
+
pipe.load_lora_weights("Jialuo21/Science-T2I-Flux-SFT")
|
| 22 |
+
|
| 23 |
+
prompt = "An unripe grape in the garden"
|
| 24 |
+
image = pipe(
|
| 25 |
+
prompt,
|
| 26 |
+
height=1024,
|
| 27 |
+
width=1024,
|
| 28 |
+
guidance_scale=0.0,
|
| 29 |
+
num_inference_steps=50,
|
| 30 |
+
max_sequence_length=512,
|
| 31 |
+
generator=torch.Generator("cpu").manual_seed(0)
|
| 32 |
+
).images[0]
|
| 33 |
+
image.save("example.png")
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
## Citation
|
| 37 |
+
|
| 38 |
+
```
|
| 39 |
+
@misc{li2025sciencet2iaddressingscientificillusions,
|
| 40 |
+
title={Science-T2I: Addressing Scientific Illusions in Image Synthesis},
|
| 41 |
+
author={Jialuo Li and Wenhao Chai and Xingyu Fu and Haiyang Xu and Saining Xie},
|
| 42 |
+
year={2025},
|
| 43 |
+
eprint={2504.13129},
|
| 44 |
+
archivePrefix={arXiv},
|
| 45 |
+
primaryClass={cs.CV},
|
| 46 |
+
url={https://arxiv.org/abs/2504.13129},
|
| 47 |
+
}
|
| 48 |
+
```
|