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

Folder got generated but not able to see any images, metadata and lables. #10

Open
saketsonekar opened this issue Sep 7, 2022 · 10 comments

Comments

@saketsonekar
Copy link

saketsonekar commented Sep 7, 2022

I ran the data generation, it is working fine, folder got created in the path and the count is going on but data is not getting generated

@C-der-Baum
Copy link
Collaborator

Hard to tell based on the limited amount of information.

However, my first go-to in that case would be to check if all the resolution information has been set correctly, i.e. check the Game Settings as depicted in the README again (in particular in NVIDIA GeForce, and in VPilot/utils/Constanty.py). The most common error is that they do not match as required.

Let me know if that helps. If it does not, post the numbers you entered here and the resolution of your screen.

@RuiCheng19950208
Copy link

RuiCheng19950208 commented Sep 13, 2022

Hello guys. As for the Constants.py I changed it into the script below.
`
MANAGED_SCREEN_RESOLUTION = "1914x1051"
if MANAGED_SCREEN_RESOLUTION != None:
if MANAGED_SCREEN_RESOLUTION == "1914x1051":
FRAME=[1914, 1051]
SCREEN_RESOLUTION=[1914, 1051]
elif MANAGED_SCREEN_RESOLUTION == "1914x1051":
FRAME=[1914, 1051]
SCREEN_RESOLUTION=[1914, 1051]
elif MANAGED_SCREEN_RESOLUTION == "1914x1051":
FRAME=[1914, 1051]
SCREEN_RESOLUTION=[1914, 1051]
else:
raise ValueError("MANAGED_SCREEN_RESOLUTION not recognized, add the wanted settings to VPilot/utils/Constants.py")

IMG_WIDTH, IMG_HEIGHT = FRAME
`
But I still cannot get any output images.
Here is the screenshots we got.
https://drive.google.com/drive/folders/1ht8NC76n7NjaKUYvtcB4PoRmep0QJ399?usp=sharing

@C-der-Baum
Copy link
Collaborator

Check the following:

  • Is ScriptHook working properly (e.g. can you activate the native trainer as per https://de.gta5-mods.com/tools/script-hook-v)
  • Which data generation script are you executing? Does it write frames (is there any cv2.imwrite() active somewhere?)?

@RuiCheng19950208
Copy link

Hi, we have already get some screenshot by python scripts. However, the Bounding box is still not working. I think the main problem comes from message part [message = client.recvMessage()] and message['bbox2d'] always equal to None. Do you have any suggestion about this problem? Thanks for your reply

@Ben93kie
Copy link
Contributor

Ben93kie commented Oct 6, 2022

Whenever I or colleagues of me encountered these kinds of issues, it almost always was one of the following:

  • Script Hook was not working properly (check if native trainer can be toggled)
  • Somewhere, the image/screen resolutions were not configured properly

I'm sorry that I can't give you a more precise answer as of now. As a hacky test, you could use a different screen and take the default configs as given here.

@lsq210
Copy link

lsq210 commented Dec 1, 2022

Hello guys. As for the Constants.py I changed it into the script below. ` MANAGED_SCREEN_RESOLUTION = "1914x1051" if MANAGED_SCREEN_RESOLUTION != None: if MANAGED_SCREEN_RESOLUTION == "1914x1051": FRAME=[1914, 1051] SCREEN_RESOLUTION=[1914, 1051] elif MANAGED_SCREEN_RESOLUTION == "1914x1051": FRAME=[1914, 1051] SCREEN_RESOLUTION=[1914, 1051] elif MANAGED_SCREEN_RESOLUTION == "1914x1051": FRAME=[1914, 1051] SCREEN_RESOLUTION=[1914, 1051] else: raise ValueError("MANAGED_SCREEN_RESOLUTION not recognized, add the wanted settings to VPilot/utils/Constants.py")

IMG_WIDTH, IMG_HEIGHT = FRAME ` But I still cannot get any output images. Here is the screenshots we got. https://drive.google.com/drive/folders/1ht8NC76n7NjaKUYvtcB4PoRmep0QJ399?usp=sharing

I have the same problem as you. I modified the Constants.py but the output folder is still empty. How did you solve the problem?

@FlyingTerran
Copy link

bool targetOnScreen = isPositionOnScreen(target2D(0), target2D(1));

This line is broken @David0tt . The two points are never on the plane. They are either <0 or >1, not by too much. Any clues?

@michealangel
Copy link

@RuiCheng19950208 did you manage to receive messages about bbox2d different from "None"?

@Spearton
Copy link

Spearton commented Jun 9, 2024

Same problem here, not opening any other windows after launching the game, like segmentation windows as shown in the demonstration video.

Already checked ScriptHook version and compatibility (1.0.3179.0) everything works fine as for the native.
Changed graphic setting accordingly to the readme.

The bbox2d value is still "None", checked it for any presentation script files and also for all the data generating scripts, no images generated, directories still empty.

Any news ?

@taesiri
Copy link

taesiri commented Dec 26, 2024

Hey @Spearton , did you resolve this?

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

9 participants