Skip to content

Commit

Permalink
black style experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
komikado-tao committed Nov 12, 2020
1 parent 88563a3 commit df67da3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion datasets/coco_stuff.dvc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
outs:
- md5: a4cd13a6757c31d4b35f85b4557cce85.dir
- md5: 5390b359636400e3ef39d3f958cc8786.dir
path: coco_stuff
4 changes: 2 additions & 2 deletions dvc.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ main:
- path: checkpoints/coco_pretrained
md5: 2b528bc16d0a21d3bc9495426b5c96a3.dir
- path: datasets/coco_stuff
md5: a4cd13a6757c31d4b35f85b4557cce85.dir
md5: 5390b359636400e3ef39d3f958cc8786.dir
- path: test.py
md5: e04759e74a78c6bca32cff5806be8193
outs:
- path: results
md5: ad946d15e4ceec8229f8ed69d56fafef.dir
md5: 22f178982ea0e4db940c4d95af53cd01.dir
8 changes: 8 additions & 0 deletions val_img_transform.py
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)

0 comments on commit df67da3

Please sign in to comment.