Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/294coder/Dif-PAN
/ to_numpy
Function
to_numpy
utils/misc.py:55–59 ·
view source on GitHub ↗
(*args)
Source
from the content-addressed store, hash-verified
53
54
55
def
to_numpy(*args):
56
l = []
57
for
i in args:
58
l.append(i.detach().cpu().numpy())
59
return
l
60
61
62
def
norm_data_range(x):
Callers
2
psnr_batch_tensor_metric
Function · 0.90
ssim_batch_tensor_metric
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected