Skip to content

Color mapping error #1

@jorisguerin

Description

@jorisguerin

Hi @YeLyuUT and thanks for your nice work.

I just ran your code downloading the checkpoint that is proposed in the readme.
Results look OK, but I believe the mapping from colors to pixel classes is wrong (does not represent the paper classes neither the mapping in UAVColorEncoder.py.

Quick fix is to replace the createColorTable from this file by the following:

def createColorTable(self):
    clr_tab = {}
    clr_tab['Building'] = [128, 0, 0]
    clr_tab['Static_Car'] = [192, 0, 192]
    clr_tab['Tree'] = [0, 128, 0]
    clr_tab['Clutter'] = [0, 0, 0]
    clr_tab['Moving_Car'] = [64, 0, 128]
    clr_tab['Road'] = [128, 64, 128]
    clr_tab['Human'] = [64, 64, 0]
    clr_tab['Vegetation'] = [128, 128, 0]
    return clr_tab

Cheers
@jorisguerin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions