Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with Tensors after start game #44

Open
Sebastianaplikacja opened this issue Apr 9, 2023 · 0 comments
Open

Error with Tensors after start game #44

Sebastianaplikacja opened this issue Apr 9, 2023 · 0 comments

Comments

@Sebastianaplikacja
Copy link

Warning: Gym version v0.24.0 has a number of critical issues with gym.make such that the reset and step functions are called before returning the environment. It is recommend to downgrading to v0.23.1 or upgrading to v0.25.1
C:\Users\maciej\AppData\Local\necto2\venv\lib\site-packages\win32\lib\pywintypes.py:2: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp, sys, os
WARNING: The Scoreboard object overwrites the inverted ball ang.vel. to include scoreboard, make sure you're not using that and instead inverting on your own. Call it in your obs builder's pre-step method to use.
Started worker 1498d56a-1f7b-44a0-b770-6d965ef7d0f9 on host 127.0.0.1 under name test
Launching Rocket League, make sure bakkesmod is running.
Launched Epic version
Executing injector...
Scanning processes
Found 2 processes
Done
Generating rollout with versions: ['-29 (0.00±2.00)', '-29 (0.00±2.00)', '-29 (0.00±2.00)', '-29 (0.00±2.00)', '-29 (0.00±2.00)', '-29 (0.00±2.00)']
Index 2 is out of range for self.replay_setters
Problem Detected. Killing Worker...
Traceback (most recent call last):
File "worker.py", line 156, in
main()
File "worker.py", line 149, in main
worker.run()
File "C:\Users\maciej\AppData\Local\necto2\venv\lib\site-packages\rocket_learn\rollout_generator\redis\redis_rollout_worker.py", line 346, in run
Rocket League (64-bit, DX11, Cooked) (1654354) is now hidden
rollouts, result = rocket_learn.utils.generate_episode.generate_episode(self.env, agents,
File "C:\Users\maciej\AppData\Local\necto2\venv\lib\site-packages\rocket_learn\utils\generate_episode.py", line 70, in generate_episode
dist = policy.get_action_distribution(obs)
File "C:\Users\maciej\AppData\Local\necto2\venv\lib\site-packages\rocket_learn\agent\discrete_policy.py", line 42, in get_action_distribution
logits = th.Tensor(self(obs))
File "C:\Users\maciej\AppData\Local\necto2\venv\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "C:\Users\maciej\AppData\Local\necto2\venv\lib\site-packages\rocket_learn\agent\discrete_policy.py", line 19, in forward
logits = self.net(obs)
File "C:\Users\maciej\AppData\Local\necto2\venv\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "C:\Users\maciej\AppData\Local\necto2\venv\lib\site-packages\torch\nn\modules\container.py", line 217, in forward
input = module(input)
File "C:\Users\maciej\AppData\Local\necto2\venv\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "C:\Users\maciej\AppData\Local\necto2\venv\lib\site-packages\torch\nn\modules\linear.py", line 114, in forward
return F.linear(input, self.weight, self.bias)
TypeError: linear(): argument 'input' (position 1) must be Tensor, not tuple
Press any key to continue . . .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant