Explorar el Código

Update inference.py

Peter Lin hace 3 años
padre
commit
ba3791548b
Se han modificado 1 ficheros con 0 adiciones y 1 borrados
  1. 0 1
      inference.py

+ 0 - 1
inference.py

@@ -60,7 +60,6 @@ def convert_video(model,
     assert output_type in ['video', 'png_sequence'], 'Only support "video" and "png_sequence" output modes.'
     assert output_type in ['video', 'png_sequence'], 'Only support "video" and "png_sequence" output modes.'
     assert seq_chunk >= 1, 'Sequence chunk must be >= 1'
     assert seq_chunk >= 1, 'Sequence chunk must be >= 1'
     assert num_workers >= 0, 'Number of workers must be >= 0'
     assert num_workers >= 0, 'Number of workers must be >= 0'
-    assert output_video_mbps == None or output_type == 'video', 'Mbps is not available for png_sequence output.'
     
     
     # Initialize transform
     # Initialize transform
     if input_resize is not None:
     if input_resize is not None: