-
Notifications
You must be signed in to change notification settings - Fork 823
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
Reshape on train_data is mixing the pixels! #63
Comments
Confirmed issue and fix. |
Within '3.test_model.py' should I change these lines too? Did this fix the issue of only going straight? |
This fix is no related with #62 ...at least with 25k examples for training, balanced.... |
@giordand I haven't had a chance to test, but good to know. @Eric-Ryan do not change the resize functions as they are working as intended. |
@giordand how you get reshaped img? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The reshape to the train data and also to the screen grabbed on testing model is mixing the pixels in the screen:
the solution is to change width by height in every line where is a reshape, as in
pygta5/2. train_model.py
Line 88 in d9375c1
X = np.array([i[0] for i in train]).reshape(-1,WIDTH,HEIGHT,3)
by:
X = np.array([i[0] for i in train]).reshape(-1,HEIGHT,WIDTH,3)
and now reshape is OK:
The text was updated successfully, but these errors were encountered: