Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
slice_video_dir.py - splits all video files in a directory into chunks of a given duration. | |
credit to https://gist.github.com/agalera/8cd63429b06e21d1420c6030c6b45c53 | |
""" | |
import argparse | |
import glob | |
import os | |
from moviepy.video.io.VideoFileClip import VideoFileClip |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding=utf-8 | |
from __future__ import print_function | |
""" | |
The MIT License (MIT) | |
Copyright (c) 2018 Louis Abraham <[email protected]> | |
Copyright ©2016 Ronan Paixão | |
Copyright (c) 2018 Gerald Storer | |
\x1B[34m\033[F\033[F |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from natsort import natsorted | |
from pathlib import Path | |
import argparse | |
def merge_files(path, output_path=None, outname=None): | |
""" | |
Given a path to a directory, merge all text files in the directory. | |
""" | |
path = Path(path) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
caption_image.py - basic captioning example using lavis | |
usage: caption_image.py [-h] -i IMAGE_PATH [-m MODEL_TYPE] [-d DEVICE] [-v VERBOSE] | |
# lavis | |
https://github.com/salesforce/LAVIS | |
""" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.