mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-12-12 10:30:37 +01:00
Item und dirt funktionieren nun zusammen
names refactored
This commit is contained in:
@@ -6,8 +6,8 @@ from natsort import natsorted
|
||||
from stable_baselines3 import PPO, DQN, A2C
|
||||
from stable_baselines3.common.evaluation import evaluate_policy
|
||||
|
||||
from environments.factory.simple_factory import DirtProperties, SimpleFactory
|
||||
from environments.factory.double_task_factory import ItemProperties, DoubleTaskFactory
|
||||
from environments.factory.factory_dirt import DirtProperties, DirtFactory
|
||||
from environments.factory.factory_item import ItemProperties, ItemFactory
|
||||
|
||||
warnings.filterwarnings('ignore', category=FutureWarning)
|
||||
warnings.filterwarnings('ignore', category=UserWarning)
|
||||
@@ -30,7 +30,7 @@ if __name__ == '__main__':
|
||||
max_local_amount=1, spawn_frequency=5, max_spawn_ratio=0.05,
|
||||
dirt_smear_amount=0.5),
|
||||
combin_agent_slices_in_obs=True, omit_agent_slice_in_obs=True)
|
||||
with SimpleFactory(**env_kwargs) as env:
|
||||
with DirtFactory(**env_kwargs) as env:
|
||||
|
||||
# Edit THIS:
|
||||
env.seed(seed)
|
||||
|
||||
Reference in New Issue
Block a user