Closed fucker255 closed 5 months ago
I changed clip_len in clip_feature_extractor.py
sample_cfgs = dict(
type='UntrimmedSampleFrames',
# clip_len=6,
clip_interval=args.clip_interval,
frame_interval=frame_interval)
and the that very problem got solved. But isn't tsn receive inputs of image clips, and my problem has not totally gone. I read the code of 'UntrimmedSampleFrames', it shows that clip_len should be as same as clip_interval, if every frame is wanted to be resolved, so I;m still confused. Wandering for any help. Sorry for my poor English.
@fucker255 Hello, Could I ask you how to obtain tvseries_video_list.txt. I am currently studying the same paper as you (MiniROAD) and am also trying to obtain features from TVSeries. If you could provide further guidance, I would be very grateful. Thank you kind attention for this problem.Hope to receive your reply.
@fucker255 Hello, Could I ask you how to obtain tvseries_video_list.txt. I am currently studying the same paper as you (MiniROAD) and am also trying to obtain features from TVSeries. If you could provide further guidance, I would be very grateful. Thank you kind attention for this problem.Hope to receive your reply.
You just put the filenames of tvseries dataset in a txt file in line. And about the question I mentioned above, I passed dataloader process with the setting in my first comment (which I think is correct now, after I read the paper MiniRoad again). Then I encountered another problem: CUDA out of memory, where it tried to allocate 29GB GPU memory and then another 29GB. The reason why it would happen seemed to be that it tried to process one whole video(extracted to about 10000 frames) in one batch. I've not solved this yet.
请问你生成的每个视频rgb特征是12048还是帧数2048
Branch
main branch (1.x version, such as
v1.0.0
, ordev-1.x
branch)Prerequisite
Environment
sys.platform: linux Python: 3.8.19 (default, Mar 20 2024, 19:58:24) [GCC 11.2.0] CUDA available: True MUSA available: False numpy_random_seed: 2147483648 GPU 0: NVIDIA GeForce GTX 1050 Ti CUDA_HOME: /usr/local/cuda-11.8 NVCC: Cuda compilation tools, release 11.8, V11.8.89 GCC: gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 PyTorch: 2.1.1+cu118 PyTorch compiling details: PyTorch built with:
TorchVision: 0.16.1+cu118 OpenCV: 4.9.0 MMEngine: 0.10.4 MMAction2: 1.2.0+4d6c934 MMCV: 2.1.0 MMDetection: 3.3.0
Describe the bug
I want to use clip_feature_extraction.py to extract per clip feature from my videos, but it seems dataloader could not load data, but I looked at the dataset.load_data_list, the file_name is right.
Reproduces the problem - code sample
(https://github.com/open-mmlab/mmaction2/blob/main/tools/misc/clip_feature_extraction.py)
Reproduces the problem - command or script
python /home/liyunlong/files/mmaction2/tools/misc/clip_feature_extraction.py /home/liyunlong/files/mmaction2/configs/recognition/tsn/tsn_imagenet-pretrained-r50_8xb32-1x1x8-100e_kinetics400-rgb.py /home/liyunlong/下载/tsn_imagenet-pretrained-r50_8xb32-1x1x8-100e_kinetics400-rgb_20220906-2692d16c.pth '/home/liyunlong/files/tvseries/rgb_feature' --video-root /home/liyunlong/files/tvseries/TVSeries_Dataset_Videos/converted/ --video-list /home/liyunlong/files/MiniROAD-main/data_info/tvseries_video_list.txt --long-video-mode --clip-interval 6 --frame-interval 1
Reproduces the problem - error message
Additional information
I use videos in mp4 with FPS=24