Instructions to use anon-submission7979/spinefairbench-generator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use anon-submission7979/spinefairbench-generator with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("stable-diffusion-v1-5", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("anon-submission7979/spinefairbench-generator") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
Release anonymous generator checkpoints
Browse files- README.md +61 -0
- SHA256SUMS.txt +4 -0
- generator_config.yaml +30 -0
- latest.pt +3 -0
- spinefairbench_sd15_lora.safetensors +3 -0
README.md
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SpineFairBench Generator Checkpoints
|
| 2 |
+
|
| 3 |
+
This anonymous repository provides generator checkpoint artifacts for reviewer
|
| 4 |
+
inspection. Reviewers do not need to run the generator to verify the benchmark
|
| 5 |
+
endpoints: the fixed counterfactual images used for evaluation are already
|
| 6 |
+
released in `anon-submission7979/spinefairbench-artifacts`.
|
| 7 |
+
|
| 8 |
+
## Recommended checkpoint
|
| 9 |
+
|
| 10 |
+
Use `spinefairbench_sd15_lora.safetensors` for reviewer inference inspection.
|
| 11 |
+
This is a clean LoRA-only export derived from the production checkpoint.
|
| 12 |
+
|
| 13 |
+
## Optional archival checkpoint
|
| 14 |
+
|
| 15 |
+
`latest.pt` is the full production PyTorch training checkpoint. It is provided
|
| 16 |
+
only for archival/reproducibility inspection. It contains training state such as
|
| 17 |
+
optimizer and discriminator components and is not the recommended inference
|
| 18 |
+
artifact.
|
| 19 |
+
|
| 20 |
+
## Not included
|
| 21 |
+
|
| 22 |
+
Raw source radiographs, source masks, runnable training data, credentials,
|
| 23 |
+
private run roots, and provider-client orchestration are not included.
|
| 24 |
+
|
| 25 |
+
## Download
|
| 26 |
+
|
| 27 |
+
Recommended LoRA only:
|
| 28 |
+
|
| 29 |
+
```bash
|
| 30 |
+
hf download anon-submission7979/spinefairbench-generator \
|
| 31 |
+
spinefairbench_sd15_lora.safetensors \
|
| 32 |
+
generator_config.yaml \
|
| 33 |
+
SHA256SUMS.txt \
|
| 34 |
+
--repo-type model \
|
| 35 |
+
--local-dir generator_assets
|
| 36 |
+
```
|
| 37 |
+
|
| 38 |
+
All generator assets, including the optional archival checkpoint:
|
| 39 |
+
|
| 40 |
+
```bash
|
| 41 |
+
hf download anon-submission7979/spinefairbench-generator \
|
| 42 |
+
--repo-type model \
|
| 43 |
+
--local-dir generator_assets
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
Verify checksums after download:
|
| 47 |
+
|
| 48 |
+
```bash
|
| 49 |
+
cd generator_assets
|
| 50 |
+
shasum -a 256 -c SHA256SUMS.txt
|
| 51 |
+
```
|
| 52 |
+
|
| 53 |
+
## Release files
|
| 54 |
+
|
| 55 |
+
| File | Purpose |
|
| 56 |
+
|---|---|
|
| 57 |
+
| `spinefairbench_sd15_lora.safetensors` | Recommended LoRA-only checkpoint for reviewer inference inspection. |
|
| 58 |
+
| `latest.pt` | Optional archival PyTorch training checkpoint; not recommended for standard inference. |
|
| 59 |
+
| `generator_config.yaml` | Public generator settings used for reviewer inspection. |
|
| 60 |
+
| `SHA256SUMS.txt` | SHA256 checksums for released files. |
|
| 61 |
+
|
SHA256SUMS.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
aa94e46cefe9a29b3353bc4344de35663c4e0e49efc4ee6f8fbd0c43d201a106 README.md
|
| 2 |
+
4e6010f49ddd648f81ac21f0b8c9baa3202896f993ad335f4743ce74c4c97725 generator_config.yaml
|
| 3 |
+
21bbfa4ee50ff389c3a49edc9fa39f4e1f7c691fad85c34cbcce595f62b8d56c spinefairbench_sd15_lora.safetensors
|
| 4 |
+
bc3f71631f07f3d0ca645808b0622f28da2c863b21622cab0ed65e8e44f329ff latest.pt
|
generator_config.yaml
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
base_model: stable-diffusion-v1-5
|
| 2 |
+
recommended_checkpoint:
|
| 3 |
+
file: spinefairbench_sd15_lora.safetensors
|
| 4 |
+
type: lora_safetensors
|
| 5 |
+
optional_archival_checkpoint:
|
| 6 |
+
file: latest.pt
|
| 7 |
+
type: pytorch_training_checkpoint
|
| 8 |
+
included: true
|
| 9 |
+
note: "Contains training state such as optimizer/discriminator components; not recommended for standard inference."
|
| 10 |
+
lora:
|
| 11 |
+
rank: 64
|
| 12 |
+
alpha: 128
|
| 13 |
+
inference:
|
| 14 |
+
steps: 50
|
| 15 |
+
guidance_scale: 5.0
|
| 16 |
+
strength: 0.15
|
| 17 |
+
seed: 42
|
| 18 |
+
mask_blend: 0.7
|
| 19 |
+
prompts:
|
| 20 |
+
elderly_female: "Lumbar spine X-ray of a 75-year-old female patient"
|
| 21 |
+
elderly_male: "Lumbar spine X-ray of a 75-year-old male patient"
|
| 22 |
+
young_female: "Lumbar spine X-ray of a 25-year-old female patient"
|
| 23 |
+
young_male: "Lumbar spine X-ray of a 25-year-old male patient"
|
| 24 |
+
release_scope:
|
| 25 |
+
raw_source_radiographs: not_included
|
| 26 |
+
source_masks: not_included
|
| 27 |
+
runnable_training_data: not_included
|
| 28 |
+
optimizer_state_in_lora_safetensors: not_included
|
| 29 |
+
discriminator_in_lora_safetensors: not_included
|
| 30 |
+
private_run_roots: not_included
|
latest.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bc3f71631f07f3d0ca645808b0622f28da2c863b21622cab0ed65e8e44f329ff
|
| 3 |
+
size 3640479384
|
spinefairbench_sd15_lora.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:21bbfa4ee50ff389c3a49edc9fa39f4e1f7c691fad85c34cbcce595f62b8d56c
|
| 3 |
+
size 51063160
|