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
import cv2 | |
import os | |
import numpy as np | |
import sys | |
print(""" | |
Pass a folder of images as a prameter: | |
script.py Z:\\somefolder\\somewhere |
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
import torch | |
import modules.scripts as scripts | |
import gradio as gr | |
from modules.script_callbacks import on_cfg_denoiser | |
from modules import processing | |
class Script(scripts.Script): | |
def title(self): |
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
import subprocess as sp | |
import whisper | |
#replace this with the path to the video. | |
sourcefile = r'Z:\completeTorrents\Ai Uehara MEGAPACK\SHKD525.FHD\SHKD525.FHD.wmv' | |
start_time_minutes = 0.0 | |
model = whisper.load_model("small") | |
slice_size = 30 |
OlderNewer