-
Notifications
You must be signed in to change notification settings - Fork 4
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
How to start the scripts #3
Comments
Hi @Cuky88, Did you get to the bottom of this? |
I didn't. I don't use SQL or the post processing. I write out everything in json and do my own post processing. |
OK, thanks for the fast update 👍 . |
GTAV Scripts is just a collection of some useful scripts. I use GTAVisionExport for extracting the buffers and writing out all the data. Everything else is done in python when post processing. |
Looking at the code in genvoc.py I think you should have set image_path to the folder containing the folders with guid names each containing a set of images. |
HI @Cuky88, |
Hi @IanKirwan
This script was creating the npz data. |
Thanks @Cuky88. I managed to get generate_boxes to process a small zip worth of images and generate the npz files, but anything more than that it fails. Had to limit the process pool size to less than 65 to get it to work. genvoc.py still not working though. |
Which SQL statement did you use for genvoc.py? As far as I can remember, you can't use just "SELECT * FROM detections". Try to run genvoc with:
Just make sure that --image_path and --pixel_path are the same as in generate_bboxes.py. |
I basically used your invocation from the OP: |
OK, I ran it with the snapshot_id back in, and set to the id of one of the images in the specified image_path. The code executes to completion, creates a set of folders in the 'out' folder with nothing but 'trainval.txt' in imagesets\main. |
Well I've managed to get genvoc to generate the annotation xml files. It generates a file called trainval.txt with a list of output sample numbers. However JPEGImages folder contains empty images, and the SegmentationObject folder is empty. Getting closer I think. I generated the npz files to a separate folder to the dataroot, and dataroot contains the unzipped folders labelled by runguid: |
genvoc.py only appears to colour segment vehicles at the moment. I therefore set colours to Yellow: |
@Cuky88 Any idea why the code is only generating segmentations for a subset of the vehicles in an image? This seems contrary to what is said in the paper. |
P.S. The colours are supposed to follow the Pascal VOC format. You can run the VOClabelcolormap.m script to generate a set of colours to use. The code is here: Pascal VOC devkit. |
Hi Ian, |
No worries. Thanks for the help on this anyway. Just frustrating as it feels very close to being right. Going to look at the contour generation and stencil culling, as I think this is where the problem lies. |
Hi @IanKirwan, |
Hi,
I have problems using your post processing scripts.
python generate_bboxes.py --session 1 --dataroot Data --pixel_path Data
The zip file is extracted in "Data/'runguid'" and the npz files are under "Data"
python genvoc.py --out TestOut --image_path Data/bca0a265-0e7f-415b-a41f-2052b7517d0e --pixel_path Data --query "SELECT * FROM detections JOIN snapshots USING (snapshot_id) JOIN runs USING (run_id) JOIN sessions USING (session_id) WHERE snapshot_id=1"
I have a test folder "TestOut" where the files should be saved. But only empty folders are created and a png in "SegmentationObject", which is just black.
colors = [(255,0,255), (55,0,55), (34,33,87)]
Is this correct?Can you help please?
Cheers,
The text was updated successfully, but these errors were encountered: