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.
@ -122,7 +122,7 @@ class DMCWrapper(core.Env):
|
||||
if img_source == "images":
|
||||
self._bg_source = natural_imgsource.RandomImageSource(shape2d, files, grayscale=False, max_videos=100, random_bg=False)
|
||||
elif img_source == "video":
|
||||
self._bg_source = natural_imgsource.RandomVideoSource(shape2d, files, grayscale=False,max_videos=100, random_bg=False)
|
||||
self._bg_source = natural_imgsource.RandomVideoSource(shape2d, files, grayscale=False, max_videos=100, random_bg=False)
|
||||
else:
|
||||
raise Exception("img_source %s not defined." % img_source)
|
||||
|
||||
|
@ -308,6 +308,7 @@ class SeparationDreamer(Dreamer):
|
||||
with tf.GradientTape(persistent=True) as model_tape:
|
||||
|
||||
# main
|
||||
data["image"] = tf.transpose(data["image"], perm=[0, 1, 3, 4, 2])
|
||||
embed = self._encode(data)
|
||||
post, prior = self._dynamics.observe(embed, data['action'])
|
||||
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):
|
||||
from subprocess import Popen, PIPE
|
||||
print(frames[0].shape)
|
||||
if frames[0].shape[-1] != 3:
|
||||
if frames[0].shape[-1] > 3:
|
||||
frames = np.transpose(frames, [0, 2, 3, 1])
|
||||
h, w, c = frames[0].shape
|
||||
print(h,w,c)
|
||||
print(frames[0].shape)
|
||||
|
||||
if c!=64:
|
||||
pxfmt = {1: 'gray', 3: 'rgb24'}[c]
|
||||
cmd = ' '.join([
|
||||
f'ffmpeg -y -f rawvideo -vcodec rawvideo',
|
||||
|
@ -1,6 +1,6 @@
|
||||
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_test: /media/vedant/cpsDataStorageWK/Vedant/natural_video_setting/test/
|
||||
debug: False
|
||||
|
@ -1,6 +1,6 @@
|
||||
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_test: /media/vedant/cpsDataStorageWK/Vedant/natural_video_setting/test/
|
||||
debug: False
|
||||
|
Loading…
Reference in New Issue
Block a user