GeezerVison is showing github.com — Document 2.5.1 checkpoint and seed behavior · cslht11/diffct@7033a28
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: diffct/geometry.py +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -251,7 +251,8 @@ def random_trajectory_3d(n_views, sid_mean, sdd_mean, sid_std=0.0, pos_std=0.0, |
251 | 251 | dtype : torch.dtype, optional |
252 | 252 | Data type for tensors (default: torch.float32). |
253 | 253 | seed : int, optional |
254 | | - Random seed for reproducibility (default: None). |
| 254 | + Random seed for reproducibility (default: None). The noise comes from |
| 255 | + a private generator, so the global PyTorch random state is unchanged. |
255 | 256 |
|
256 | 257 | Returns |
257 | 258 | ------- |
|
Collapse file
Copy file name to clipboardExpand all lines: docs/EXECUTION.md +3Lines changed: 3 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -301,6 +301,9 @@ are checked for finite values in bounded blocks before creating the workspace |
301 | 301 | or writing the output; every rank agrees on admission before execution. |
302 | 302 |
|
303 | 303 | Checkpoint paths are `step-000002/rank-00000/metadata.json`, for example. |
| 304 | +Saving never replaces a step: when the rank directory of a step already |
| 305 | +exists, the solve raises a `ValueError` and leaves the saved checkpoint |
| 306 | +unchanged. Use a new `checkpoint_directory` for a new solve. |
304 | 307 | Resume from the corresponding rank directory using `resume=...`; `iterations` |
305 | 308 | is the total target, including saved steps. Complete CGLS/SIRT/Adam state and |
306 | 309 | residual history are restored. Fingerprints bind the acquisition, measurements, |
|