Skip to content

Commit

Permalink
change path
Browse files Browse the repository at this point in the history
  • Loading branch information
tingsong committed Aug 2, 2019
1 parent 409e21e commit b92619d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Code/1_data_prepare/1_5_compute_mean.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
import numpy as np
import cv2
import random
import os

"""
随机挑选CNum张图片,进行按通道计算均值mean和标准差std
先将像素从0~255归一化至 0-1 再计算
"""


train_txt_path = '../../Data/train.txt'
train_txt_path = os.path.join("..", "..", "Data/train.txt")

CNum = 2000 # 挑选多少图片进行计算

Expand Down

0 comments on commit b92619d

Please sign in to comment.