提交 e3046b61 编写于 作者: L LielinJiang

update requirements.txt

上级 355e5565
...@@ -64,8 +64,8 @@ class UnpairedDataset(BaseDataset): ...@@ -64,8 +64,8 @@ class UnpairedDataset(BaseDataset):
index_B = random.randint(0, self.B_size - 1) index_B = random.randint(0, self.B_size - 1)
B_path = self.B_paths[index_B] B_path = self.B_paths[index_B]
A_img = cv2.imread(A_path) A_img = cv2.cvtColor(cv2.imread(A_path), cv2.COLOR_BGR2RGB)
B_img = cv2.imread(B_path) B_img = cv2.cvtColor(cv2.imread(B_path), cv2.COLOR_BGR2RGB)
# apply image transformation # apply image transformation
A = self.transform_A(A_img) A = self.transform_A(A_img)
B = self.transform_B(B_img) B = self.transform_B(B_img)
......
...@@ -118,7 +118,7 @@ class DownBlock2d(nn.Layer): ...@@ -118,7 +118,7 @@ class DownBlock2d(nn.Layer):
padding=padding, padding=padding,
groups=groups) groups=groups)
self.norm = nn.BatchNorm2D(out_features) self.norm = nn.BatchNorm2D(out_features)
self.pool = nn.AvgPool2d(kernel_size=(2, 2)) self.pool = nn.AvgPool2D(kernel_size=(2, 2))
def forward(self, x): def forward(self, x):
out = self.conv(x) out = self.conv(x)
......
...@@ -2,3 +2,5 @@ tqdm ...@@ -2,3 +2,5 @@ tqdm
PyYAML>=5.1 PyYAML>=5.1
scikit-image>=0.14.0 scikit-image>=0.14.0
scipy>=1.1.0 scipy>=1.1.0
opencv-python
imageio-ffmpeg
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册