Background: I want to create a 3D object out of a set of 15 base shapes, for which I’m then adjusting rotation, color and such via actions, with the goal of matching a face photo. This creates the (perhaps problematically high) amount of 15 * 14 = 210 continuous actions. The only observation of the agent is an 84x84 camera pointed at the randomized photo on a quad. The reward is how much the snapshot of another camera of the 3D creation now matches the photo, using the sum of color distance of each pixel. I’m ending each training immediately via Done() after handing out the rewards (not sure if that’s even appropriate). ResetOnDone then repeats the same process.
The Error: Even when trying various different Config Yaml settings (e.g. I tried
time_horizon: 1, but also much higher, more normal values), I keep getting errors in the Anaconda/ Tensorflow prompt after some steps. What might I be doing wrong? Error below. Thanks!
INFO:mlagents.trainers: Main: ClayxelFaceMatcher: Step: 1000. Time Elapsed: 22.805 s Mean Reward: -65.020. Std of Reward: 0.000. Training.
Process Process-1:
Traceback (most recent call last):
File "e:\_misc\programs\anaconda\envs\ml-agents\lib\multiprocessing\process.py", line 258, in _bootstrap
self.run()
File "e:\_misc\programs\anaconda\envs\ml-agents\lib\multiprocessing\process.py", line 93, in run
self._target(*self._args, **self._kwargs)
File "e:\_misc\programs\anaconda\envs\ml-agents\lib\site-packages\mlagents\trainers\subprocess_env_manager.py", line 132, in worker
env.step()
File "e:\_misc\programs\anaconda\envs\ml-agents\lib\site-packages\mlagents_envs\timers.py", line 262, in wrapped
return func(*args, **kwargs)
File "e:\_misc\programs\anaconda\envs\ml-agents\lib\site-packages\mlagents_envs\environment.py", line 326, in step
self._update_state(rl_output)
File "e:\_misc\programs\anaconda\envs\ml-agents\lib\site-packages\mlagents_envs\environment.py", line 283, in _update_state
agent_info_list, self._env_specs[brain_name]
File "e:\_misc\programs\anaconda\envs\ml-agents\lib\site-packages\mlagents_envs\timers.py", line 262, in wrapped
return func(*args, **kwargs)
File "e:\_misc\programs\anaconda\envs\ml-agents\lib\site-packages\mlagents_envs\rpc_utils.py", line 127, in batched_step_result_from_proto
_process_visual_observation(obs_index, obs_shape, agent_info_list)
File "e:\_misc\programs\anaconda\envs\ml-agents\lib\site-packages\mlagents_envs\timers.py", line 262, in wrapped
return func(*args, **kwargs)
File "e:\_misc\programs\anaconda\envs\ml-agents\lib\site-packages\mlagents_envs\rpc_utils.py", line 73, in _process_visual_observation
for agent_obs in agent_info_list
File "e:\_misc\programs\anaconda\envs\ml-agents\lib\site-packages\mlagents_envs\rpc_utils.py", line 73, in <listcomp>
for agent_obs in agent_info_list
File "e:\_misc\programs\anaconda\envs\ml-agents\lib\site-packages\mlagents_envs\timers.py", line 262, in wrapped
return func(*args, **kwargs)
File "e:\_misc\programs\anaconda\envs\ml-agents\lib\site-packages\mlagents_envs\rpc_utils.py", line 51, in process_pixels
image.load()
File "e:\_misc\programs\anaconda\envs\ml-agents\lib\site-packages\PIL\ImageFile.py", line 250, in load
self.load_end()
File "e:\_misc\programs\anaconda\envs\ml-agents\lib\site-packages\PIL\PngImagePlugin.py", line 677, in load_end
self.png.call(cid, pos, length)
File "e:\_misc\programs\anaconda\envs\ml-agents\lib\site-packages\PIL\PngImagePlugin.py", line 140, in call
return getattr(self, "chunk_" + cid.decode('ascii'))(pos, length)
File "e:\_misc\programs\anaconda\envs\ml-agents\lib\site-packages\PIL\PngImagePlugin.py", line 356, in chunk_IDAT
raise EOFError
EOFError