mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-12 19:04:03 +08:00
Fix cli bug in high version of tyro (#3567)
* limited the tyro version up to 0.9.2 * bump tyro>=0.9.8 * Bump typeguard * Runtime checking with jaxtyping hook instead of typeguard * Fix test for Python >=3.11, caused by missing default_factory --------- Co-authored-by: Brent Yi <yibrenth@gmail.com> Co-authored-by: Justin Kerr <justin.g.kerr@gmail.com>
This commit is contained in:
3 files changed
+10
-9
No files matched your search
@@ -83,7 +83,7 @@ The `NERFSTUDIO_METHOD_CONFIGS` environment variable additionally accepts a func
|
||||
```python
|
||||
"""my_method/my_config.py"""
|
||||
|
||||
from dataclasses import dataclass
|
||||
from dataclasses import dataclass, field
|
||||
from nerfstudio.engine.trainer import TrainerConfig
|
||||
from nerfstudio.plugins.types import MethodSpecification
|
||||
|
||||
@@ -95,7 +95,7 @@ def MyMethodFunc():
|
||||
|
||||
@dataclass
|
||||
class MyMethodClass(MethodSpecification):
|
||||
config: TrainerConfig = TrainerConfig(...)
|
||||
config: TrainerConfig = field(default_factory=lambda: TrainerConfig(...))
|
||||
description: str = "Custom description"
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user