v1: U-Net radio coverage prediction (2-channel input, baseline)
This commit is contained in:
10
src/test.py
Normal file
10
src/test.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import numpy as np
|
||||
from PIL import Image
|
||||
|
||||
base = r"D:\Nextcloud-youfu\dev\code\radio-coverage-dl\data\png"
|
||||
ant = np.asarray(Image.open(base + r"\antennas\600_0.png").convert("L"))
|
||||
bld = np.asarray(Image.open(base + r"\buildings_complete\600.png").convert("L"))
|
||||
|
||||
print("天线图里出现的数值:", np.unique(ant))
|
||||
print("天线亮点的像素个数:", int((ant > 127).sum()))
|
||||
print("建筑图里出现的数值:", np.unique(bld))
|
||||
Reference in New Issue
Block a user