imt-ring 1.6.18__py3-none-any.whl → 1.6.20__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {imt_ring-1.6.18.dist-info → imt_ring-1.6.20.dist-info}/METADATA +9 -1
- {imt_ring-1.6.18.dist-info → imt_ring-1.6.20.dist-info}/RECORD +6 -6
- {imt_ring-1.6.18.dist-info → imt_ring-1.6.20.dist-info}/WHEEL +1 -1
- ring/ml/ml_utils.py +22 -4
- ring/ml/optimizer.py +5 -1
- {imt_ring-1.6.18.dist-info → imt_ring-1.6.20.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: imt-ring
|
3
|
-
Version: 1.6.
|
3
|
+
Version: 1.6.20
|
4
4
|
Summary: RING: Recurrent Inertial Graph-based Estimator
|
5
5
|
Author-email: Simon Bachhuber <simon.bachhuber@fau.de>
|
6
6
|
Project-URL: Homepage, https://github.com/SimiPixel/ring
|
@@ -98,6 +98,14 @@ import os
|
|
98
98
|
os.environ["MUJOCO_GL"] = "egl"
|
99
99
|
```
|
100
100
|
|
101
|
+
#### Windows-related: ImportError: DLL load failed while importing ...
|
102
|
+
|
103
|
+
> ImportError: DLL load failed while importing _multiarray_umath: Das angegebene Modul wurde nicht gefunden.
|
104
|
+
|
105
|
+
Solution:
|
106
|
+
1. `pip uninstall -y jax jaxlib`
|
107
|
+
2. `conda install -c conda-forge jax`
|
108
|
+
|
101
109
|
## Publications
|
102
110
|
|
103
111
|
The following publications utilize this software library, and refer to it as the *Random Chain Motion Generator (RCMG)* (more specifically the function `ring.RCMG`):
|
@@ -54,8 +54,8 @@ ring/io/xml/to_xml.py,sha256=fohb-jWMf2cxVdT5dmknsGyrNMseICSbKEz_urbaWbQ,3407
|
|
54
54
|
ring/ml/__init__.py,sha256=nbh48gaswWeY4S4vT1sply_3ROj2DQ7agjoLR4Ho3T8,1517
|
55
55
|
ring/ml/base.py,sha256=lfwEZLBDglOSRWChUHoH1kezefhttPV9TMEpNIqsMNw,9972
|
56
56
|
ring/ml/callbacks.py,sha256=W19QF6_uvaNCjs8ObsjNXD7mv9gFgJBixdRSbB_BynE,13301
|
57
|
-
ring/ml/ml_utils.py,sha256=
|
58
|
-
ring/ml/optimizer.py,sha256=
|
57
|
+
ring/ml/ml_utils.py,sha256=xqy9BnLy8IKVqkFS9mlZsGJXSbThI9zZxZ5rhl8LSI8,7144
|
58
|
+
ring/ml/optimizer.py,sha256=TZF0_LmnewzmGVso-zIQJtpWguUW0fW3HeRpIdG_qoI,4763
|
59
59
|
ring/ml/ringnet.py,sha256=mef7jyN2QcApJmQGH3HYZyTV-00q8YpsYOKhW0-ku1k,8973
|
60
60
|
ring/ml/rnno_v1.py,sha256=2qE08OIvTJ5PvSxKpYGzGSrvEImWrdAT_qslZ7jP5tA,1372
|
61
61
|
ring/ml/train.py,sha256=huUfMK6eotS6BRrQKoZ-AUG0um3jlqpfQFZNJT8LKiE,10854
|
@@ -86,7 +86,7 @@ ring/utils/randomize_sys.py,sha256=G_vBIo0OwQkXL2u0djwbaoaeb02C4LQCTNNloOYIU2M,3
|
|
86
86
|
ring/utils/utils.py,sha256=tJaWXLGOTwkxJQj2l23dX97wO3aZYhM2qd7eNuMRs84,6907
|
87
87
|
ring/utils/register_gym_envs/__init__.py,sha256=PtPIRBQJ16339xZ9G9VpvqrvcGbQ_Pk_SUz4tQPa9nQ,94
|
88
88
|
ring/utils/register_gym_envs/saddle.py,sha256=tA5CyW_akSXyDm0xJ83CtOrUMVElH0f9vZtEDDJQalI,4422
|
89
|
-
imt_ring-1.6.
|
90
|
-
imt_ring-1.6.
|
91
|
-
imt_ring-1.6.
|
92
|
-
imt_ring-1.6.
|
89
|
+
imt_ring-1.6.20.dist-info/METADATA,sha256=uOgzTpTz7MgDEIGhL7onaD_r64DlL6ALSnaT5t8u3HY,4097
|
90
|
+
imt_ring-1.6.20.dist-info/WHEEL,sha256=a7TGlA-5DaHMRrarXjVbQagU3Man_dCnGIWMJr5kRWo,91
|
91
|
+
imt_ring-1.6.20.dist-info/top_level.txt,sha256=EiT790-lAyi8iwTzJArH3f2k77rwhDn00q-4PlmvDQo,5
|
92
|
+
imt_ring-1.6.20.dist-info/RECORD,,
|
ring/ml/ml_utils.py
CHANGED
@@ -3,6 +3,7 @@ from functools import partial
|
|
3
3
|
import os
|
4
4
|
from pathlib import Path
|
5
5
|
import pickle
|
6
|
+
import shutil
|
6
7
|
import time
|
7
8
|
from typing import Optional, Protocol
|
8
9
|
import warnings
|
@@ -107,7 +108,7 @@ class WandbLogger(MixinLogger):
|
|
107
108
|
wandb.log(data)
|
108
109
|
|
109
110
|
def log_params(self, path: str):
|
110
|
-
|
111
|
+
self.wandb_save(path)
|
111
112
|
|
112
113
|
def log_video(
|
113
114
|
self,
|
@@ -117,7 +118,7 @@ class WandbLogger(MixinLogger):
|
|
117
118
|
step: Optional[int] = None,
|
118
119
|
):
|
119
120
|
# TODO >>>
|
120
|
-
|
121
|
+
self.wandb_save(path)
|
121
122
|
return
|
122
123
|
# <<<
|
123
124
|
data = {"video": wandb.Video(path, caption=caption, fps=fps)}
|
@@ -127,10 +128,10 @@ class WandbLogger(MixinLogger):
|
|
127
128
|
|
128
129
|
def log_image(self, path: str, caption: Optional[str] = None):
|
129
130
|
# wandb.log({"image": wandb.Image(path, caption=caption)})
|
130
|
-
|
131
|
+
self.wandb_save(path)
|
131
132
|
|
132
133
|
def log_txt(self, path: str, wait: bool = True):
|
133
|
-
|
134
|
+
self.wandb_save(path)
|
134
135
|
# TODO: `wandb` is not async at all?
|
135
136
|
if wait:
|
136
137
|
time.sleep(3)
|
@@ -138,6 +139,23 @@ class WandbLogger(MixinLogger):
|
|
138
139
|
def close(self):
|
139
140
|
wandb.run.finish()
|
140
141
|
|
142
|
+
@staticmethod
|
143
|
+
def wandb_save(path):
|
144
|
+
if wandb.run is not None and wandb.run.settings._offline:
|
145
|
+
# Create a dedicated directory in the WandB run directory to store copies
|
146
|
+
# of files
|
147
|
+
destination_dir = os.path.join(wandb.run.dir, "copied_files")
|
148
|
+
os.makedirs(destination_dir, exist_ok=True)
|
149
|
+
|
150
|
+
# Copy the file to this new location
|
151
|
+
copied_file_path = os.path.join(destination_dir, os.path.basename(path))
|
152
|
+
shutil.copy2(path, copied_file_path)
|
153
|
+
|
154
|
+
# Use wandb.save to save the copied file (now a true copy)
|
155
|
+
wandb.save(copied_file_path)
|
156
|
+
else:
|
157
|
+
wandb.save(path, policy="now")
|
158
|
+
|
141
159
|
|
142
160
|
def _flatten_convert_filter_nested_dict(
|
143
161
|
metrices: NestedDict, filter_nan_inf: bool = True
|
ring/ml/optimizer.py
CHANGED
@@ -48,7 +48,11 @@ def make_optimizer(
|
|
48
48
|
if adap_clip is not None
|
49
49
|
else optax.identity()
|
50
50
|
),
|
51
|
-
|
51
|
+
(
|
52
|
+
optax.clip_by_global_norm(glob_clip)
|
53
|
+
if glob_clip is not None
|
54
|
+
else optax.identity()
|
55
|
+
),
|
52
56
|
inner_opt(schedule, **inner_opt_kwargs),
|
53
57
|
)
|
54
58
|
optimizer = skip_large_update(
|
File without changes
|