Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rocAL - Video pipeline Support (#640)
* Fix a few bugs * caffe and caffe2 changes for optimization * removed commented code * Fix issue with SSD meta node. * Add support for original width and height for TF Detection * Add change required to reflect mean and std values in an images pixel value * Clean codes * Hardcoding the key values for tf detection and classification * Release RingBuffer memory * Modify RALI API's to return the bbox coords and bbox labels for all images in the output batch * Update rali_unittest.cpp * Clean repo * Add batching support in PYTHON API for labels,bboxes,img_sizes excluding image_names * Add support for image names for batching support * Merge RALI_Upgrade * Update raliunittest.cpp * Add support for bytes instead of str in rali pybind * Code clean Up * Fix codacy issues * Fix codacy issues * Fix indendation error * Fix codacy warnings * Fix trailing spaces warnings * Fix scope of the variable can be reduced warning * Fix errors in the RALI API * Fix Codacy warnings * Remove extra empty lines * Add support for Box Encoder in coco_pipeline.py * Add codes to retrieve meta data information in loader module * Add support for One Hot Labels for all classification based Readers * Add codes to retrieve meta data information in decoder module * Introduce data loader for coco reader using partail decoder * Add casting Support for Encoded Labels * Add support for RandomBBoxCrop augmenation * Clean codes * Introduce RandomBBoxCrop_MetaData Reader to store the crop params returned by RandomBBoxCrop function * Update RandomBBoxCrop_MetaData Reader * Add meta data update support for both vertical and horizontal flip. * Add RandomBBox support. Introduced map to store image name and crop generated by randomBbox. Look up to fetch CropCordsBatch. Get functionality to get crop wrt to image_name as key. Fixed the seg fault. * Add support for BBFlip * Add support for Random BBox Crop Reader to be part of load routine. Fetches the crop of the image to be decodes and does partial decoding for crop part. * Fix the warnings. * Fix issue with the meta data updation in master graph. * Add API changes. Fix issues with RandomBBoxCrop algorithm. * Add support for Random BBox Crop & ImageDecoderSlice * Small changes in Box Encoder * Small Change in Anchor boxes input comment * Add changes for Crop Dim exceding Image Dim * Minor Changes for RandomBboxCrop * Fix issues with RandomBboxCrop. * Fix Reader seg fault issue. * Add minor Changes for fp16 * Minor Changes * Clean Codes * Minor Changes for Random BBox Crop * Add support for Multi-GPU * Minor Changes for Multi-GPU support in COCO file souce partial * Remove unwanted code. * Minor Changes in RandomBBoxCrop * Fix Random BBox Crop * Comment out the print statements * Minor Changes for RBBOX * Code clean up. * Fix warnings wrt Ubuntu 20.04 * Resolve codacy warnings * Resolve codacy warnings * Fix PR issues. * Revert back Slice to Crop * Resolve Codacy warnings * Resolve codacy issues * Resolve Minor codacy issue * Fix issue to make branch compatible with AMDRPP master TOT. * Fix the crop_x difference in partial decoding image crop * Fix issue with crop fixed. * Crop_x & crop_y value fixed. * Check bounday conditions and update crop params. * Fix the crop_width difference in partial decoding image crop * Change wrt invalid_bboxes. * Rewrite RandomBBoxCrop Code * Fix issue with random generation. Used randomdevice for seed when initializing random param. * Fix Key value zero error. Error introduced by partial decoding crop correction. Fixed by adjusting the calculation of top and right. * Add codes for Video Reader and Loader module (cherry picked from commit d97ab927e9a6597fde666f7dec50ba987259dccf) * Changes in image_augmentation library (cherry picked from commit 153f59bd377cf7cbd87ecf58d722cd88ba79ff22) * Fix Build issues (cherry picked from commit e023b104c9a220e4745b83693b6c38a7411b54fc) * Fix Build errors (cherry picked from commit 908c599fe7b300dfd837a87215b33295bc2752a9) * Add reader type for video reader (cherry picked from commit 843a6cd6a6436513b4c000813a48b66461768ecc) * Adding codes to decode video input file (cherry picked from commit 2c249d7312e0c746fac600b5e38c5b4cb16f1910) * Introduce Video Decoder module to decode video files (cherry picked from commit 4d18ea384a2599aed3b0a0c975d7cd0a343720d2) * Add decoder functions in FFMPEG_VIDEO_DECODER (cherry picked from commit 02224f9601ee4269c68f6725a19468a171718276) * Clean Video Decoder codes (cherry picked from commit 8699179b282aa7870f60ca670a19b512ca45d9ac) * Clean codes to remove build issues (cherry picked from commit 39c5f45ff875d111f2977af0487e9cf8d22174c2) * Clean codes * Initial changes for video reader pipeline. [NBC] * To handle sequence length. * To handle shuffle. * Temp local changes. [NYC] * Changes in the video reader pipeline. [NWC] * Video Reader changes * Fix the segmentation fault in the video reader pipeline * Add support to save decoded output frames in video decoder * Working Pipeline - Single Video file input Add support to modify internal and user batch size in master graph Add ffmpeg seek operation * Minor Changes * Add support for decoding multiple video files and shuffle * Add support to initialize ffmpeg context for each video decoder instance * Code cleanup * Fix issue in Shuffling the images in video reader * Add seek_frame function in video decoder * Code clean up * Update rali_unittest * Add folder based label meta data reader for video reader * Add support for Sequence Reader in RALI * Fix codacy issue * Add Sequence Rearrange initial setup. Works only for sequence length equal to video reader. Introduce ovx node sequence rearrange to support. Introduce API in rali_api_augmentations. * Fix issue with Sequence Rearrange with different sequence length. * Introduce raliVideoFileResize node in RALI to fuse video decoding and resize * Add new_sequence_length parameter to sequence rearrange * Add sequence rearrange algorithm for RGB images * Add support for Sequence Reader in RALI * Fix random shuffling of sequences in video reader * Add support for folder based reader and label support for video decoder and labels. * Clean codes * Fix issue in raliVideoReaderResize * Code clean up. * set batchsize to internal batch size in video pipeline loaders. * Add flag in master graph to switch between video and image pipelines. * Add step and stride parameter to VideoReader and SequenceReader * Fix issue with the sequence rearrange. * Adjust remaining image count in master graph wrt sequence rearrange. * Add meta data support for video reader folder based. * Update decode image info name according to stride * Minor bug fix * Add support for text file input Add support to fetch video properties from text file Modify reader to read from the start to end frame specified in text file Add meta data support for text file input to the video reader * Add support to process repeated file inputs in text file * Add meta data reader support to parse timestamps from text file Introduce enable_timestamps parameter and set_timestamps_bool to the meta data readers * Add rali_video_unittests Video Reader Vidoe Reader Resize Sequence Reader Sequence Rearramge * Code clean up * Fix maximum limit for decoder instance creation. Check if instance is there for the video file if not initialize one using previously created instance. * Fix warnings. * Minor fix * Add file_list_frame_num parameter To switch between timestamp or frame number input passed with text file * Add data samples for testing Add video samples Add coco sample data with 10 images for train and val * Add support to generate frame number and timestamps output * Fix multiple video file input to video pipeline * Add labelled video folder samples * Modified test suite Modified rali_video_unittests.cpp Add testScript.sh to build and execute rali_video_unittests Remove video pipeline tests from rali_unittests.cpp * Code clean up * Modify frame_rate variable * Add step and stride parameters to SequenceReaderSingleSharded * Minor fix * Modify ffmpeg video decoder functions Initialize the ffmpeg context once for each video file * Fix ffmpeg deprecation warnings * Modify ffmpeg video decoder Add width, height, stride and pixel format paramters to Decode * Code clean up Change Video label reader folders to Video label reader * Remove text file input parameter to dataloader * Add support to check variable frame rate videos * Minor changes * Minor fix * Code clean up * Code clean up * Change rali to rocAL * Merge branch 'AMD-Master' into video_devel * Resolve build issues Code clean up * Fix bug with Sequence Rearrange * Add sharding support to Video Reader * Add sharding support for Sequence Reader * Introduce decoder mode parameter * Add U8 support for Sequence Rearrange Minor changes * Add SingleShard API for video readers * Add support to decode more than one sequence Modify the load routine to decode more than one sequence Add sequence count parameter to Sequence rearrange * Merge branch 'video_devel_PR' of https://github.com/MCW-Dev/MIVISION into video_devel_PR * Fix SequenceReader and SequenceReaderSingleShard * Resolve merge conflicts * Minor fix * Add codes for multithreading * Fix build isssue with HIP backend * Fix warnings * Resolve codacy issues Remove blank lines Adjust spacing * Resolve codacy issues * Modify the sequence reader arguments of the ImageLoaderNode * Remove rocAL sample data * Minor changes Add RALI_VIDEO flag to few files * Add seperate VideoReader Introduce VideoFilesourceReader and VideoReaderConfig * Introduce SequenceInfo struct Minor changes * Fix codacy issues in video unit test testScript.sh * Minor fix * Minor bug fix * Introduce the latest FFmpeg API in ffmpeg_video_decoder.cpp * Merge branch 'PR_changes' of https://github.com/fiona-gladwin/MIVisionX into video_devel_PR * Video Pipeline changes * Batch size changes for Video Reader * Video Pipeline Meta data reader changes to store the meta data for each sequence and not for every frame in the sequence * Code cleanup - Video Reader changes * Batch size variable changes Change batch size and internal batch size variables to constant. Introduce batch size and batch ratio variables for the Sequence Reader in master graph. * Change datatype of frame_rate to float * Enable HIP Backend support for video pipeline * Add codes to dump the images in each batch as AVI video file * Minor change in video unit tests * Add HIP backend support for sequence rearrange * Add OpenCL backend support for sequence rearrange * Add condtion to disable ResizeNode update in raliVideoFileResize if resize width and height is same as the videos * PR changes * Fix single folder of images issue in Sequence Reader * Fix codacy issues * PR changes * API changes * Introduce separate output routine for the video pipeline * PR changes * PR changes * Fix for codacy issues Co-authored-by: LokeshBonta <lokeswara@multicorewareinc.com> Co-authored-by: Swetha B S <swetha@multicorewareinc.com> Co-authored-by: shobana-mcw <shobana@multicorewareinc.com> Co-authored-by: fionagladwin <fionagladwin@multicorewareinc.com> Co-authored-by: r-abishekmcw <abishek@multicorewareinc.com>
- Loading branch information