mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-22 20:19:43 +00:00
not use dataclass (#3414)
Co-authored-by: Pepijn <138571049+pkooij@users.noreply.github.com>
This commit is contained in:
@@ -13,7 +13,6 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from dataclasses import dataclass, field
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import TYPE_CHECKING
|
from typing import TYPE_CHECKING
|
||||||
|
|
||||||
@@ -174,17 +173,14 @@ N_COLOR_CHANNELS = 3
|
|||||||
|
|
||||||
|
|
||||||
# config
|
# config
|
||||||
@dataclass
|
|
||||||
class GR00TN15Config(PretrainedConfig):
|
class GR00TN15Config(PretrainedConfig):
|
||||||
model_type = "gr00t_n1_5"
|
model_type = "gr00t_n1_5"
|
||||||
backbone_cfg: dict = field(init=False, metadata={"help": "Backbone configuration."})
|
|
||||||
|
|
||||||
action_head_cfg: dict = field(init=False, metadata={"help": "Action head configuration."})
|
backbone_cfg: dict
|
||||||
|
action_head_cfg: dict
|
||||||
action_horizon: int = field(init=False, metadata={"help": "Action horizon."})
|
action_horizon: int
|
||||||
|
action_dim: int
|
||||||
action_dim: int = field(init=False, metadata={"help": "Action dimension."})
|
compute_dtype: str = "float32"
|
||||||
compute_dtype: str = field(default="float32", metadata={"help": "Compute dtype."})
|
|
||||||
|
|
||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
super().__init__(**kwargs)
|
super().__init__(**kwargs)
|
||||||
|
|||||||
Reference in New Issue
Block a user