Giter Club home page Giter Club logo

Comments (5)

Elin24 avatar Elin24 commented on August 17, 2024

there should be 6 output folders after running GCC-Labeler:

jpgs, jsons, mats, pngs, segs, vis

Mask pictures are saved in segs/. These *.raw files could be read by:

def getMask(rawfile):
    stencil = np.fromfile(rawfile, 'uint8')
    stencil = stencil.reshape(1080, 1920)
    stencil = np.where(np.isin(stencil, (1, 17)), 1, 0).astype('uint8')# OUTDOOR
    # stencil = np.where(np.isin(stencil, (9, 25)), 1, 0).astype('uint8')# INDOOR
    return stencil

Missing files about 180 and 360 is OK, it would be generated when the number of people is larger than 360.

The quality of labels without these three mods would become worse. Because these pedestrians generated by GTA5 may not be labeled, and lens distortion would lead to mask with unmatched pixels.

from gcc-cl.

2811299 avatar 2811299 commented on August 17, 2024

I'm really very sorry to bother you, could you please send me a raw file to test?
Everytime I can only generated a total black image, I cannot locate where's the problem, because I'm a new hand on image processing relative Python module, I totally don't have a clue and searching the answer from everywhere.

from gcc-cl.

Elin24 avatar Elin24 commented on August 17, 2024

This is what you want, scene.zip

from gcc-cl.

2811299 avatar 2811299 commented on August 17, 2024

Thank you very mush, after download your draw file, I can display mask image using this code

mask = np.fromfile(raw_file, 'uint8').reshape(1080, 1920) * 255
mask = Image.fromarray(mask)
mask.show()

But if I try to load the raw file generated myself, it will always be total black,

I installed all the mods you mentioned exactly, no map on screen, no HUD displayed, everything goes well except last step it asks me to press F5, nothing happened after I press F5, so I just restart the game myself.
Following are the files I generated myself, could you please help me to find out what's the matter with the file generated myself?
gta-collect-data.zip
label-data.zip

Or could you please send me your GCC-cl data from GTA5? So I'm able to check if it's the problem of my game not installing GCC-cl mod well or the GCC-label Python code I'm using.

from gcc-cl.

2811299 avatar 2811299 commented on August 17, 2024

Oh, at last, I know the reason, MSAA should be turned off.
According to https://github.com/umautobots/GTAVisionExport/tree/master/managed
Thank you Elin24, I think this issue can be closed.

from gcc-cl.

Related Issues (20)

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.