MCPcopy Create free account
hub / github.com/CompVis/zigma / is_video

Function is_video

train_acc.py:74–83  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

72
73
74def is_video(args):
75 if hasattr(args.model.params, "video_frames"):
76 if args.model.params.video_frames > 0:
77 return True
78 elif args.model.params.video_frames == 0:
79 return False
80 else:
81 raise ValueError("video_frames must be >= 0")
82 else:
83 return False
84
85
86def init_zs(args, device, in_channels, input_size):

Callers 3

mainFunction · 0.90
init_zsFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected