↓폴밍끼 유튜브 채널 자세히보기

AI/Deep Learning 4

IAT에 데이터셋 이미지 크기 일괄적으로 변경하기

Image.open()으로 하니까 PIL resize라고 검색ㅎㅐ서 resize하는 방법을 data_lowlight = data_lowlight.resize(self.resize), data_highlight = data_highlight.resize(self.resize) 을 if self.mode == 'train': 과 elif self.mode == 'test': 에 각각 추가 def __getitem__(self, index): data_lowlight_path = self.data_list[index] if self.mode == 'train': data_lowlight = Image.open(data_lowlight_path) data_lowlight = data_lowlight.resize..

AI/Deep Learning 2023.03.09