AutoNUE / public-code

http://cvit.iiit.ac.in/scene-understanding-challenge-2018/
104 stars 49 forks source link

Args global variable not accessible in preperation/createLabels.py in process_folder function #14

Open pvbhanuteja opened 3 years ago

pvbhanuteja commented 3 years ago

args variable that is inaccessible in preperation/createLabels.py in process_folder function I'm working on semantic segmentation so for now I hardcoded for myself for id_type, color and instance.

Arpitrf commented 3 years ago

I am facing the same issue. To hardcode, add the following to the process_folder function:

    # parser = ArgumentParser()

    # parser.add_argument('--datadir', default="")
    # parser.add_argument('--id-type', default='level3Id')
    # parser.add_argument('--color', type=bool, default=False)
    # parser.add_argument('--instance', type=bool, default=False)
    # parser.add_argument('--panoptic', type=bool, default=False)
    # parser.add_argument('--semisup_da', type=bool, default=False)
    # parser.add_argument('--unsup_da', type=bool, default=False)
    # parser.add_argument('--weaksup_da', type=bool, default=False)
    # parser.add_argument('--num-workers', type=int, default=10)

    # args = parser.parse_args()
pvbhanuteja commented 3 years ago

for now I hardcoded for myself for id_type, color and instance. Yup did that just wanted to report the bug.