Closed trouble-maker007 closed 3 months ago
I do not remember the structure of the folder actually. But, I think saliency
means ISNet and saiency_sub
means BASNet. You can modify the name of the directory.
https://github.com/CyberAgentAILab/RALF/blob/main/image2layout/hfds_builder/saliency_detection.py#L105
@UdonDa img_sal = Image.open(self.sal[idx]).convert("L") img_sal_sub = Image.open(self.sal_sub[idx]).convert("L") img_sal_map = Image.fromarray(np.maximum(np.array(img_sal), np.array(img_sal_sub)))