Skip to content

Commit 4592f64

Browse files
committed
fix: python 3.9 support
1 parent 12e0969 commit 4592f64

File tree

5 files changed

+1021
-71
lines changed

5 files changed

+1021
-71
lines changed

.cursorrules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
- Use black formatting
33
- Avoid methods with sideeffects and if they are needed then add a "_" suffix
44
- Prefer pathlib over os
5-
- Python 3.10
5+
- Python 3.9
66
- Check your changes with `poetry run pytest -vsx`. Start by first only running specific tests to keep a high iteration speed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ Set parameters to EMA state during training:
8888

8989
```python
9090
with posthoc_ema.state_dict(sigma_rel=0.15) as ema_state_dict:
91-
model.load_state_dict(ema_state_dict, strict=False)
91+
result = model.load_state_dict(ema_state_dict, strict=False)
92+
assert len(result.unexpected_keys) == 0
9293
```
9394

9495
You can visualize how well different EMA decay rates can be reconstructed from the stored checkpoints:

0 commit comments

Comments
 (0)