Comments (8)
Actually, for those who also have the same problem, I solve this by adding env = env.unwrapped.
Then I have the assertion error so I changed 'Search-RrDoorDiscrete-v0' to 'Search-RrDoorContinuous-v0'
After that, it complained that it can not find env.observation_space then I added env.observation_space = env.observation_shape in the run.py file.
I am not sure if it is correct, but it now runs.
from gym-unrealcv.
Hi,
Thank you for your report.
Can you report your gym version? The older version gym may not need env.unwrapped.
Changing the Discrete to Continuous in env name is necessary to any gym version when using DDPG for continuous actions.
from gym-unrealcv.
Hi,
Thanks a lot for your consideration and the reply! My gym version is 0.9.3. I also think it is the problem of gym version. The older versions should work.
I have tried to run the example code of the DDPG algorithm after the previous steps. However, the agent did not learn after the training (Judging from the rewards from the last 30 episodes). I am not sure what might be the problem in this case.
btw, I followed the similar procedure for the DQN example provided in this repo and the agent learned.
Best,
from gym-unrealcv.
Hi,
Could you tell me the env and the type of reward function you used when training the DDPG? Usually, DDPG needs more exploration and dense reward to train.
from gym-unrealcv.
Hi, I tried both bbox and bbox_distance reward functions.
from gym-unrealcv.
Hi,
Thanks for the reply.
I used the example you provided. The modifications I had is to change ENV_NAME in the constants.py to be 'Search-RrDoorContinuous-v0' and change the reward type to be 'bbox_distance'.
Here is the configuration string I had.
register(
id='Search-RrDoorContinuous-v0',
entry_point='gym_unrealcv.envs:UnrealCvSearch_base',
kwargs = {'setting_file' : 'search_rr_door41.json',
'reset_type' : 'waypoint',
'test': False,
'action_type' : 'continuous',
'observation_type': 'color',
'reward_type': 'bbox_distance',
'docker': use_docker
},
max_episode_steps = 1000000
)
from gym-unrealcv.
Hi,
The environment seems no problem.
You can try to modify the hyperparameter in the constants.py
, especially changing MAX_EXPLORE_STEPS
to 50000 or larger for more exploration.
from gym-unrealcv.
Thanks a lot! I will have a try.
from gym-unrealcv.
Related Issues (20)
- Windows Support HOT 2
- the realated env setting file about paper 'Towards Distraction-Robust Active Visual Tracking' HOT 1
- Multi agent setting HOT 6
- env.reset( ) NotImplementedError HOT 1
- Errors with gym-unrealcv for active object tracking HOT 6
- What will 2D environments output HOT 2
- Errors on Towards Distraction-Robust Active Visual Tracking HOT 3
- The problem about the fine-tuning of meta strategy HOT 3
- Is a URDF model usable in gym-unrealcv?
- Can not connect to ('127.0.0.1', 9000) HOT 10
- textures is not available to your platform HOT 4
- Unable to run python3 random_agent.py -e UnrealTrack-City1StefaniPath1-DiscreteColor-v1 HOT 1
- textures path not found HOT 4
- Should you show the env you are running? HOT 2
- Which does tensorflow version match keras==1.2.0 HOT 1
- 关于unrealcv CTRL+C无法释放资源的问题 HOT 1
- The gui is so small HOT 2
- Can you add support for Unreal Engine 5.3?
- unrealcv_cmd not found HOT 2
- OpenGL窗口黑屏 HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gym-unrealcv.