-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e16048a
commit 425d407
Showing
6 changed files
with
53 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,10 @@ | ||
from .dm_control_env import DMControlEnv | ||
from .opencv_image_viewer import OpenCVImageViewer | ||
from gym.envs import register | ||
from dm_control import suite | ||
|
||
|
||
for domain_name, task_name in suite.ALL_TASKS: | ||
ID = f'{domain_name.capitalize()}{task_name.capitalize()}-v0' | ||
register(id=ID, | ||
entry_point='dm2gym.envs:DMSuiteEnv', | ||
kwargs={'domain_name': domain_name, 'task_name': task_name}, | ||
max_episode_steps=1000) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from .dm_suite_env import DMSuiteEnv | ||
from .opencv_image_viewer import OpenCVImageViewer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,26 +8,25 @@ | |
long_description = f.read() | ||
|
||
# Minimal requried dependencies | ||
install_requires = ['numpy', | ||
'gym', | ||
'opencv-python'] | ||
install_requires = ['numpy', | ||
'gym'] | ||
tests_require = ['pytest', | ||
'flake8', | ||
'sphinx', | ||
'sphinx_rtd_theme'] | ||
|
||
setup(name='dm2gym', | ||
version='0.1.1', | ||
version='0.2.0', | ||
author='Xingdong Zuo', | ||
author_email='[email protected]', | ||
description='dm2gym: convert DeepMind Control Suite to OpenAI gym environments.', | ||
description='dm2gym: Convert DeepMind Control Suite to OpenAI gym environments.', | ||
long_description=long_description, | ||
long_description_content_type='text/markdown', | ||
url='https://github.com/zuoxingdong/dm2gym', | ||
install_requires=install_requires, | ||
tests_require=tests_require, | ||
python_requires='>=3', | ||
# List all lagom packages (folder with __init__.py), useful to distribute a release | ||
# List all packages (folder with __init__.py), useful to distribute a release | ||
packages=find_packages(), | ||
# tell pip some metadata (e.g. Python version, OS etc.) | ||
classifiers=['Programming Language :: Python :: 3', | ||
|