Update README.md
Browse files
README.md
CHANGED
|
@@ -41,12 +41,16 @@ Checkpoints for **“Text-to-CT Generation via 3D Latent Diffusion Model with Co
|
|
| 41 |
|
| 42 |
### How to Get Started (Python)
|
| 43 |
```python
|
| 44 |
-
from huggingface_hub import
|
| 45 |
-
repo_id = "yourname/text2ct-weights" # replace with the actual repo id
|
| 46 |
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
|
| 51 |
# Use these in the code release configs:
|
| 52 |
# trained_autoencoder_path -> autoencoder_path
|
|
|
|
| 41 |
|
| 42 |
### How to Get Started (Python)
|
| 43 |
```python
|
| 44 |
+
from huggingface_hub import snapshot_download
|
|
|
|
| 45 |
|
| 46 |
+
repo_id = "dmolino/text2ct-weights"
|
| 47 |
+
|
| 48 |
+
snapshot_download(
|
| 49 |
+
repo_id=repo_id,
|
| 50 |
+
repo_type="model",
|
| 51 |
+
local_dir="your_local_path"
|
| 52 |
+
)
|
| 53 |
+
```
|
| 54 |
|
| 55 |
# Use these in the code release configs:
|
| 56 |
# trained_autoencoder_path -> autoencoder_path
|