Code Monkey home page Code Monkey logo

gta-postprocessing's People

Contributors

barcharcraz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gta-postprocessing's Issues

ngv_box3dpolygon unknown function in PostgreSQL

Here you are using ngv_box3dpolygon function in the PostgreSQL. Since I can not find it anywhere in PostgreSQL, nor in PostGis extension, I guess it is your function.
Could you add your defined functions in the PostgreSQL database?

Stencil TIFF format?

Hey, I tried reading the RGB images from the .tiffs generated by the managed code. They look fine but the stencil looks weird. I'm reading it using the code provided in the generate_bboxes.py and get the following result if I display the image.

stencil

What did I mess up?
Can you help me?

Code used:
imgpath = data_dir + filename + ".tiff"
tiffimg = TIFF.open(str(imgpath))
img = Image.open(str(imgpath))
w = img.width
h = img.height
del img
image = np.empty((h, w, 4), dtype=np.uint8)
depth = np.empty((h, w), dtype=np.float32)
stencil = np.empty((h, w), dtype=np.uint8)
TIFF.setdirectory(tiffimg, 0)
TIFF.readencodedstrip(tiffimg, 0, image.ctypes.data, -1)
lastdir = num_directories(tiffimg) - 1
TIFF.setdirectory(tiffimg, lastdir - 1)
TIFF.readencodedstrip(tiffimg, 0, depth.ctypes.data, -1)
TIFF.setdirectory(tiffimg, lastdir)
TIFF.readencodedstrip(tiffimg, 0, stencil.ctypes.data, -1)
cv2.imshow("mask", stencil)
cv2.waitKey(0)

edit:
Moved to main repo.

Unknown stored procedure in schema.sql

Hi, the ngv_get_bytes(localpath, imagepath) which is used in ngv_get_bytes(id integer) and ngv_get_raster(archive text, image text) is not found, and thus these functions fail to be created.

This does not break the functionality, because these functions are not being used in the post-processing script, as far as I could see, but it would be nice to have it working without errors.

How to start the scripts

Hi,

I have problems using your post processing scripts.

  1. I start generate_bboxes.py with: 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"
  2. Then I start genvoc.py with: 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.
  3. In this line you used some color code, which are not in the script. So I tried a list: colors = [(255,0,255), (55,0,55), (34,33,87)] Is this correct?
  4. When printing out the status in generate_bboxes.py, there are always 0 detections, even if the cars are "correctly" annotated like in the images in the zip file. The fields best_bbox and coverage in table detections won't be updated also.

Can you help please?

Cheers,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.