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
| """ | |
| Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
| BSD License | |
| """ | |
| import numpy as np | |
| # data I/O | |
| data = open('input.txt', 'r').read() # should be simple plain text file | |
| chars = list(set(data)) | |
| data_size, vocab_size = len(data), len(chars) |
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
| #!/usr/bin/python | |
| from __future__ import print_function | |
| import os | |
| cur_dir = os.path.dirname(os.path.realpath(__file__)) | |
| input_folder = "original_clips/" | |
| output_folder = "output/" | |
| os.system("mkdir " + output_folder) |
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
| """ | |
| Example TensorFlow script for finetuning a VGG model on your own data. | |
| Uses tf.contrib.data module which is in release v1.2 | |
| Based on PyTorch example from Justin Johnson | |
| (https://gist.github.com/jcjohnson/6e41e8512c17eae5da50aebef3378a4c) | |
| Required packages: tensorflow (v1.2) | |
| Download the weights trained on ImageNet for VGG: | |
| ``` | |
| wget http://download.tensorflow.org/models/vgg_16_2016_08_28.tar.gz |
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
| # 邪魔歪道之使用OpenCV精准切割视频 | |
| ## ffmpeg 切割视频 | |
| 使用ffmpeg直接切割视频的命令 | |
| ``` | |
| ffmpeg -i test.mp4 -ss 00:00:00 -t 00:00:30 -c:v copy -c:a copy output.mp4 | |
| ``` | |
| 或者 | |
| ``` |