cashiwamochi / RealEstate10K_Downloader

These scripts are used to download RealEstate10K dataset.
MIT License
64 stars 14 forks source link

Resolution of the extracted frames is small #8

Closed VjayalakshmiK closed 3 years ago

VjayalakshmiK commented 3 years ago

Hi, thank you so much for the code! The code worked for me and I was able to extract frames from the urls. But I notice that the frames have resolution 144x176 (even without the resize condition at line 60 in generate_dataset.py. However, I believe the original frames should have resolution 576x1024.

I think the downloaded video itself is at this smaller resolution- this I inferred from the ffmpeg narration that is displayed during the video-to-frames conversion process. Can you help me here? I would like the frames at full resolution

image

VjayalakshmiK commented 3 years ago

Found the solution. By including a 'filter' parameter, it is possible to download the videos from youtube at custom resolutions. The change would look like stream = yt.streams.filter(res='720p').first().download('./','current_'+mode).

Here, some resolutions available are 240p, 360p, 720p and so on.
Therefore, I am closing this issue.