Merge branch 'main'
This commit is contained in:
commit
3b61469681
BIN
Dreamer/__pycache__/dreamers.cpython-37.pyc
Normal file
BIN
Dreamer/__pycache__/dreamers.cpython-37.pyc
Normal file
Binary file not shown.
BIN
Dreamer/__pycache__/env_tools.cpython-37.pyc
Normal file
BIN
Dreamer/__pycache__/env_tools.cpython-37.pyc
Normal file
Binary file not shown.
BIN
Dreamer/__pycache__/models.cpython-37.pyc
Normal file
BIN
Dreamer/__pycache__/models.cpython-37.pyc
Normal file
Binary file not shown.
BIN
Dreamer/__pycache__/tools.cpython-37.pyc
Normal file
BIN
Dreamer/__pycache__/tools.cpython-37.pyc
Normal file
Binary file not shown.
BIN
Dreamer/__pycache__/tools.cpython-38.pyc
Normal file
BIN
Dreamer/__pycache__/tools.cpython-38.pyc
Normal file
Binary file not shown.
BIN
Dreamer/__pycache__/wrappers.cpython-37.pyc
Normal file
BIN
Dreamer/__pycache__/wrappers.cpython-37.pyc
Normal file
Binary file not shown.
BIN
Dreamer/__pycache__/wrappers.cpython-38.pyc
Normal file
BIN
Dreamer/__pycache__/wrappers.cpython-38.pyc
Normal file
Binary file not shown.
BIN
Dreamer/dmc2gym/__pycache__/__init__.cpython-37.pyc
Normal file
BIN
Dreamer/dmc2gym/__pycache__/__init__.cpython-37.pyc
Normal file
Binary file not shown.
BIN
Dreamer/dmc2gym/__pycache__/natural_imgsource.cpython-37.pyc
Normal file
BIN
Dreamer/dmc2gym/__pycache__/natural_imgsource.cpython-37.pyc
Normal file
Binary file not shown.
BIN
Dreamer/dmc2gym/__pycache__/wrappers.cpython-37.pyc
Normal file
BIN
Dreamer/dmc2gym/__pycache__/wrappers.cpython-37.pyc
Normal file
Binary file not shown.
@ -308,6 +308,7 @@ class SeparationDreamer(Dreamer):
|
|||||||
with tf.GradientTape(persistent=True) as model_tape:
|
with tf.GradientTape(persistent=True) as model_tape:
|
||||||
|
|
||||||
# main
|
# main
|
||||||
|
data["image"] = tf.transpose(data["image"], perm=[0, 1, 3, 4, 2])
|
||||||
embed = self._encode(data)
|
embed = self._encode(data)
|
||||||
post, prior = self._dynamics.observe(embed, data['action'])
|
post, prior = self._dynamics.observe(embed, data['action'])
|
||||||
feat = self._dynamics.get_feat(post)
|
feat = self._dynamics.get_feat(post)
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Dreamer/local_dm_control_suite/__pycache__/base.cpython-37.pyc
Normal file
BIN
Dreamer/local_dm_control_suite/__pycache__/base.cpython-37.pyc
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Dreamer/local_dm_control_suite/__pycache__/finger.cpython-37.pyc
Normal file
BIN
Dreamer/local_dm_control_suite/__pycache__/finger.cpython-37.pyc
Normal file
Binary file not shown.
BIN
Dreamer/local_dm_control_suite/__pycache__/fish.cpython-37.pyc
Normal file
BIN
Dreamer/local_dm_control_suite/__pycache__/fish.cpython-37.pyc
Normal file
Binary file not shown.
BIN
Dreamer/local_dm_control_suite/__pycache__/hopper.cpython-37.pyc
Normal file
BIN
Dreamer/local_dm_control_suite/__pycache__/hopper.cpython-37.pyc
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Dreamer/local_dm_control_suite/__pycache__/lqr.cpython-37.pyc
Normal file
BIN
Dreamer/local_dm_control_suite/__pycache__/lqr.cpython-37.pyc
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Dreamer/local_dm_control_suite/__pycache__/walker.cpython-37.pyc
Normal file
BIN
Dreamer/local_dm_control_suite/__pycache__/walker.cpython-37.pyc
Normal file
Binary file not shown.
Binary file not shown.
@ -87,10 +87,12 @@ def video_summary(name, video, step=None, fps=20):
|
|||||||
def encode_gif(frames, fps):
|
def encode_gif(frames, fps):
|
||||||
from subprocess import Popen, PIPE
|
from subprocess import Popen, PIPE
|
||||||
print(frames[0].shape)
|
print(frames[0].shape)
|
||||||
if frames[0].shape[-1] != 3:
|
if frames[0].shape[-1] > 3:
|
||||||
frames = np.transpose(frames, [0, 2, 3, 1])
|
frames = np.transpose(frames, [0, 2, 3, 1])
|
||||||
h, w, c = frames[0].shape
|
h, w, c = frames[0].shape
|
||||||
print(h,w,c)
|
print(frames[0].shape)
|
||||||
|
|
||||||
|
if c!=64:
|
||||||
pxfmt = {1: 'gray', 3: 'rgb24'}[c]
|
pxfmt = {1: 'gray', 3: 'rgb24'}[c]
|
||||||
cmd = ' '.join([
|
cmd = ' '.join([
|
||||||
f'ffmpeg -y -f rawvideo -vcodec rawvideo',
|
f'ffmpeg -y -f rawvideo -vcodec rawvideo',
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
dmc:
|
dmc:
|
||||||
|
|
||||||
logdir: /home/vedant/tia/Dreamer/logdir
|
logdir: /media/vedant/cpsDataStorageWK/Vedant/tia_logs
|
||||||
video_dir_train: /media/vedant/cpsDataStorageWK/Vedant/natural_video_setting/train/
|
video_dir_train: /media/vedant/cpsDataStorageWK/Vedant/natural_video_setting/train/
|
||||||
video_dir_test: /media/vedant/cpsDataStorageWK/Vedant/natural_video_setting/test/
|
video_dir_test: /media/vedant/cpsDataStorageWK/Vedant/natural_video_setting/test/
|
||||||
debug: False
|
debug: False
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
dmc:
|
dmc:
|
||||||
|
|
||||||
logdir: /home/vedant/tia/Dreamer/logdir
|
logdir: /media/vedant/cpsDataStorageWK/Vedant/tia_logs
|
||||||
video_dir_train: /media/vedant/cpsDataStorageWK/Vedant/natural_video_setting/train/
|
video_dir_train: /media/vedant/cpsDataStorageWK/Vedant/natural_video_setting/train/
|
||||||
video_dir_test: /media/vedant/cpsDataStorageWK/Vedant/natural_video_setting/test/
|
video_dir_test: /media/vedant/cpsDataStorageWK/Vedant/natural_video_setting/test/
|
||||||
debug: False
|
debug: False
|
||||||
|
Loading…
Reference in New Issue
Block a user