摘要: 在B站下载的视频对应的bcc格式字幕,在potplayer中不能播放, 以下代码中输入文件夹的路径,就可以批量把json文件转换为srt文件,存放在当前文件夹下的名为srt的子文件夹下。 1 # -- coding: utf-8 -- 2 import math 3 import os 4 5 #单 阅读全文
posted @ 2020-08-18 18:59 WWBlog 阅读(1861) 评论(0) 推荐(0) 编辑
摘要: 1 import tensorflow as tf 2 print(tf.__version__) 3 4 5 class BottleNeck(tf.keras.layers.Layer): 6 def __init__(self, growth_rate, drop_rate): 7 super 阅读全文
posted @ 2020-06-15 19:06 WWBlog 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 1 import tensorflow as tf 2 from tensorflow.keras import layers, activations 3 4 5 class Residual(tf.keras.Model): 6 def __init__(self, num_channels, 阅读全文
posted @ 2020-06-11 22:16 WWBlog 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 1 import numpy as np 2 import tensorflow as tf 3 4 class BatchNormalization(tf.keras.layers.Layer): 5 def __init__(self, decay=0.9, epsilon=1e-5, **kw 阅读全文
posted @ 2020-06-09 23:35 WWBlog 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 1 import tensorflow as tf 2 print(tf.__version__) 3 4 5 for gpu in tf.config.experimental.list_physical_devices('GPU'): 6 tf.config.experimental.set_m 阅读全文
posted @ 2020-06-08 21:48 WWBlog 阅读(364) 评论(0) 推荐(0) 编辑
摘要: 1.进入Home, 按ctrl + H, 显示隐藏的文件; 2.找到.keras文件夹,keras默认的数据集就存放在这个文件夹下。 阅读全文
posted @ 2020-06-02 21:28 WWBlog 阅读(1136) 评论(0) 推荐(0) 编辑
摘要: 1 !pip install tushare 2 import tushare as ts 3 import numpy as np 4 import tensorflow as tf 5 from tensorflow.keras.layers import Dropout, Dense, GRU 阅读全文
posted @ 2020-05-14 22:47 WWBlog 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 1 !pip install tushare 2 import tushare as ts 3 import numpy as np 4 import tensorflow as tf 5 from tensorflow.keras.layers import Dropout, Dense, LST 阅读全文
posted @ 2020-05-13 22:54 WWBlog 阅读(427) 评论(0) 推荐(0) 编辑
摘要: 1 !pip install tushare 2 import tushare as ts 3 import matplotlib.pyplot as plt 4 5 df1 = ts.get_k_data('601318', ktype='D', start='2008-01-01', end=' 阅读全文
posted @ 2020-05-13 21:33 WWBlog 阅读(326) 评论(3) 推荐(0) 编辑
摘要: 1 import tensorflow as tf 2 import numpy as np 3 from tensorflow.keras.layers import Dense, SimpleRNN, Embedding 4 import matplotlib.pyplot as plt 5 i 阅读全文
posted @ 2020-05-13 00:03 WWBlog 阅读(487) 评论(0) 推荐(0) 编辑