(args)
| 72 | |
| 73 | |
| 74 | def 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 | |
| 86 | def init_zs(args, device, in_channels, input_size): |