Open bartotti opened 3 months ago
So I some how fixed the issue of winError 126 by downgrading the pytorch verison to 1.13.0 and now I think the new issue is how to get the image processing operation to work
C:\Users\10232021\PycharmProjects\MapleAITrainer\venv\Scripts\python.exe C:/Users/10232021/PycharmProjects/MapleAITrainer/train.py Creating new model! Using cpu device Wrapping the env in a VecTransposeImage. Wrapping the env in a VecTransposeImage. (0, 0, 4) Traceback (most recent call last): File "C:\Users\10232021\PycharmProjects\MapleAITrainer\venv\lib\site-packages\PIL\ImageFile.py", line 547, in _save fh = fp.fileno() AttributeError: '_idat' object has no attribute 'fileno'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\10232021\PycharmProjects\MapleAITrainer\train.py", line 42, in
Process finished with exit code 1
I hardcoded the pixel values for locations of things on the screen because I was lazy. I have it in my todos to make it dynamic. But for now you'll probably have to tweak the values here:
I hardcoded the pixel values for locations of things on the screen because I was lazy. I have it in my todos to make it dynamic. But for now you'll probably have to tweak the values here:
The pixcel values u mentioned is for the whole screen of the game ?
Traceback (most recent call last): File "C:\Users\10232021\PycharmProjects\MapleAITrainer\run_latest.py", line 4, in
from stable_baselines3 import PPO
File "C:\Users\10232021\PycharmProjects\MapleAITrainer\venv\lib\site-packages\stable_baselines3__init.py", line 3, in
from stable_baselines3.a2c import A2C
File "C:\Users\10232021\PycharmProjects\MapleAITrainer\venv\lib\site-packages\stable_baselines3\a2c\ init.py", line 1, in
from stable_baselines3.a2c.a2c import A2C
File "C:\Users\10232021\PycharmProjects\MapleAITrainer\venv\lib\site-packages\stable_baselines3\a2c\a2c.py", line 3, in
import torch as th
File "C:\Users\10232021\PycharmProjects\MapleAITrainer\venv\lib\site-packages\torch\ init__.py", line 148, in
raise err
OSError: [WinError 126] The specified module could not be found. Error loading "C:\Users\10232021\PycharmProjects\MapleAITrainer\venv\lib\site-packages\torch\lib\fbgemm.dll" or one of its dependencies.
I had tried: .\new_env\Scripts\activate install visual C++ Redistributable packages both x86 and x64 and reintrall PyTorch: pip uninstall torch and pip install torch and double check that the fbgemm.dll was in lib folder pip install stable-baselines3 torch gymnasium
and none of these works any fixes ?