Comments (2)
It's no problem, however, I'm not sure I can share that.
I could, however, refer you to the same package we used in downloading videos called yt_dlp: https://github.com/yt-dlp/yt-dlp
I hope this is helpful, a possible config for low resolution or high resolution video download can be like this:
def get_ydl_opts(video_dir, archive=False, info=True, subtitle=True, low_res=False):
if not low_res:
return {
'ignoreerrors': True,
'format': "bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4] / bv*+ba/b",
"outtmpl": f'{video_dir}/%(channel)s/%(id)s___%(title)s.%(ext)s',
"writesubtitles": subtitle,
"writeautomaticsub": subtitle,
"subtitlesformat": 'srt',
"writedescription": info,
"writeinfojson": info,
"getcomments": info,
"writeannotations": info,
"overwrites": False,
"download_archive": f'{video_dir}/archive.txt' if archive else None,
"restrictfilenames": True,
}
else:
return {
'ignoreerrors': True,
'format': "bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4] / bv*+ba/b",
'format_sort': ["+res:320"],
"outtmpl": f'{video_dir}/%(channel)s/%(id)s___%(title)s.%(ext)s',
"writesubtitles": subtitle,
"writeautomaticsub": subtitle,
"subtitlesformat": 'srt',
"writedescription": info,
"writeinfojson": info,
"getcomments": info,
"writeannotations": info,
"overwrites": False,
"download_archive": f'{video_dir}/archive.txt' if archive else None,
"restrictfilenames": True,
}
```
from quilt1m.
Again, let me know if you have any issues reconstructing Quilt!
from quilt1m.
Related Issues (20)
- Reproducing zero-shot classification results HOT 5
- How to fine-tune QuiltNet-B-32 model HOT 1
- please do not use BiomedCLIP for ARCH dataset HOT 2
- How to access the corresponding texts for QUILT dataset? I got the access to images via ZENODO but could not find corresponding texts. HOT 2
- Visualizations of the results HOT 1
- Access to the data HOT 1
- Clarification on stable_times assignment in data/main.py HOT 1
- Image-to-text generation HOT 1
- Issues with CSV files HOT 2
- Load ViT-B/32 HOT 1
- Error on loading QuiltNet-B-16 HOT 3
- Missing Images HOT 3
- Keyframe Extraction Code HOT 1
- Superflous images? HOT 1
- Which preprocess should I use for linear probing ? HOT 2
- Training Text HOT 1
- Noisy text
- Text Context Length HOT 2
- Downloaded Dataset Size HOT 1
- Providing dataset HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quilt1m.