forked from NVlabs/SPADE
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
komikado-tao
committed
Nov 12, 2020
1 parent
88563a3
commit df67da3
Showing
3 changed files
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
outs: | ||
- md5: a4cd13a6757c31d4b35f85b4557cce85.dir | ||
- md5: 5390b359636400e3ef39d3f958cc8786.dir | ||
path: coco_stuff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import cv2 | ||
import numpy as np | ||
import os | ||
|
||
for img_name in os.listdir('datasets/coco_stuff/val_img'): | ||
img = cv2.imread('datasets/coco_stuff/val_img/'+img_name) | ||
black = np.zeros((img.shape)) | ||
cv2.imwrite('datasets/coco_stuff/val_img/'+img_name, black) |