Views
No views yet
stabilityai/stable-diffusion-3.5-medium1sd3_s2a_hf_single_repo_code/
2 model/
3 pytorch_lora_weights.safetensors
4 emotion_encoder.pt
5 inference_config.json
6 s2a_sd3_api/
7 modeling.py
8 runner.py
9 server.py
10 tools/
11 export_into_model_dir.py
12 requirements.txt
13 pyproject.toml
14 README.mds2a_sd3_api/model/requirements.txt, pyproject.tomlmodel/ directorymodel/:pytorch_lora_weights.safetensorsemotion_encoder.ptinference_config.json1python tools/export_into_model_dir.py \
2 --src_model_dir /path/to/sd3-stage-a-emotion/checkpoint-500./model/1pip install -r requirements.txt
2pip install -e ../model1python -m s2a_sd3_api.server \
2 --pretrained_model_name_or_path stabilityai/stable-diffusion-3.5-medium \
3 --host 0.0.0.0 \
4 --port 80001python -m s2a_sd3_api.server \
2 --pretrained_model_name_or_path stabilityai/stable-diffusion-3.5-medium \
3 --s2a_model_dir /path/to/adapter_dir \
4 --host 0.0.0.0 \
5 --port 8000curl http://127.0.0.1:8000/health1curl -X POST http://127.0.0.1:8000/generate \
2 -H "Content-Type: application/json" \
3 -d '{
4 "scene_prompt": "A quiet beach with a small wooden boat near the shore",
5 "va": [-0.7, 0.7],
6 "seed": 42
7 }' \
8 --output out.png1curl -X POST http://127.0.0.1:8000/generate_json \
2 -H "Content-Type: application/json" \
3 -d '{
4 "scene_prompt": "A quiet beach with a small wooden boat near the shore",
5 "valence": -0.7,
6 "arousal": 0.7,
7 "seed": 42
8 }'