CQFIO / PhotographicImageSynthesis

Photographic Image Synthesis with Cascaded Refinement Networks
https://cqf.io/ImageSynthesis/
1.25k stars 227 forks source link

Questions in get_semantic_map function #22

Closed walkkker closed 5 years ago

walkkker commented 5 years ago

Could you tell me what's the purpose and theory of this code part in get_semantic_map function: "for k in range(dataset.palette.shape[0]): tmp[:,:,k]=np.float32((semantic[:,:,0]==dataset.palette[k,0])&(semantic[:,:,1]==dataset.palette[k,1])&(semantic[:,:,2]==dataset.palette[k,2]))"