Diffusers
Safetensors
stable-diffusion
lora
scientific-machine-learning
physics-simulation
visual-reasoning
Instructions to use sandner/vr-lora-physics-sd15 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use sandner/vr-lora-physics-sd15 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("sandner/vr-lora-physics-sd15") 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
Update README.md
Browse files
README.md
CHANGED
|
@@ -23,7 +23,7 @@ The model does not generate images. Instead, it acts as a dynamics engine in lat
|
|
| 23 |
This LoRA was trained for 15,000 steps on a synthetic dataset of 10,000 N-body trajectories.
|
| 24 |
|
| 25 |
* **Research Project Repository:** [https://github.com/sandner-art/SC-Visual-Reasoning](https://github.com/sandner-art/SC-Visual-Reasoning)
|
| 26 |
-
* **Training Dataset:** [huggingface.co/datasets/
|
| 27 |
|
| 28 |
## How to Use
|
| 29 |
|
|
@@ -34,7 +34,7 @@ This LoRA is designed to be used with the evaluation script found in the main re
|
|
| 34 |
from diffusers import StableDiffusionPipeline
|
| 35 |
|
| 36 |
base_model = "runwayml/stable-diffusion-v1-5"
|
| 37 |
-
lora_model = "
|
| 38 |
|
| 39 |
pipeline = StableDiffusionPipeline.from_pretrained(base_model)
|
| 40 |
pipeline.load_lora_weights(lora_model)
|
|
|
|
| 23 |
This LoRA was trained for 15,000 steps on a synthetic dataset of 10,000 N-body trajectories.
|
| 24 |
|
| 25 |
* **Research Project Repository:** [https://github.com/sandner-art/SC-Visual-Reasoning](https://github.com/sandner-art/SC-Visual-Reasoning)
|
| 26 |
+
* **Training Dataset:** [huggingface.co/datasets/sandner/n-body-trajectories-for-vrlora](https://huggingface.co/datasets/sandner/n-body-trajectories-for-vrlora) (Replace with your link)
|
| 27 |
|
| 28 |
## How to Use
|
| 29 |
|
|
|
|
| 34 |
from diffusers import StableDiffusionPipeline
|
| 35 |
|
| 36 |
base_model = "runwayml/stable-diffusion-v1-5"
|
| 37 |
+
lora_model = "sandner/vr-lora-physics-sd15" # Replace with your repo name
|
| 38 |
|
| 39 |
pipeline = StableDiffusionPipeline.from_pretrained(base_model)
|
| 40 |
pipeline.load_lora_weights(lora_model)
|