- 博客(10)
- 问答 (1)
- 收藏
- 关注
原创 PyCharm更改C盘.PyCharm配置文件夹存储位置
更改C盘.PyCharm配置文件夹存储位置在启动 PyCharm 后选择 Help -> Edit Custom Properties 的选项,弹出:选择 Create ,之后在文件中添加配置文件新的存储位置即可,例如:idea.config.path=D:/Program Files/.PyCharm/configidea.system.path=D:/Program Files/.PyCharm/system最后将原文件夹下的 C:\Users\<username>\.P
2021-12-11 10:21:41
4675
原创 python-批量letterbox_resize图片
import numpy as npimport cv2import osdef letterbox_resize(img, new_width, new_height, interp=0): ''' Letterbox resize. keep the original aspect ratio in the resized image. ''' ori_height, ori_width = img.shape[:2] resize_ratio = mi
2020-11-06 22:26:25
1032
转载 ACL2019代码开源论文
来自:GitHub yizhen20133868 WeChat Subscription 程序员遇见GitHub#### Incremental Transformer with Deliberation Decoder for Document Grounded Conversations- 论文链接:https://www.aclweb.org/anthology/P19-1002.pdf- 代码链接: https://github.com/lizekang/ITDD#### Impr
2020-08-25 19:16:15
1626
1
原创 测试GPU是否参与模型训练等运算
import tensorflow as tf# Creates a graph.a = tf.constant([6.0, 5.0, 3.0, 3.0, 2.0, 1.0], shape=[2, 3], name='a')b = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[3, 2], name='b')c = tf.matmul(a, b)# Creates a session with log_device_placement set
2020-08-16 09:39:49
804
原创 python:ubuntu下安装tensorflow-gpu并自动配置cuda及cudnn
conda create --name my_tf python=3.6 tensorflow-gpu=1.14cuda及cudnn会自动配置完成。以上命令执行完毕后激活环境,继续安装其他库如:opencv等
2020-08-14 20:41:05
220
原创 python:cifar10的data_batch_1提取为png图片
import cv2import numpy as npfile = 'data_batch_1'def unpickle(file): import pickle with open(file, 'rb') as fo: dict = pickle.load(fo,encoding='latin1') return dictdict1 = unpickle(file)for i in range(1000):#我只保存的100张 img = dic
2020-08-08 20:39:32
1221
原创 vivado:流水灯
`timescale 1ns / 1ps//////////////////////////////////////////////////////////////////////////////////// Create Date: 2020/07/30 17:08:48// Module Name: run_led// Revision 0.01 - File Created// Additional Comments://高电平灯亮//16个灯,约束文件按照开发板分配//viva...
2020-07-30 20:26:52
1251
原创 python:4维list及numpy单位矩阵和零矩阵的for循环实现
零矩阵n = 2 #第一维m = 3 #第二维k = 4 #第三维l = 2 #第三维matrix = [None] * nfor i in range(len(matrix)): matrix[i] = [0] * mfor i in range(n): for j in range(m): matrix[i][j] = [0] * kfor i in range(n): for j in range(m): for x in
2020-07-25 10:29:48
1415
原创 vivado:查看各模块资源占用情况方法
完成Implementation后,在Flow Navigator下的IMPLMENTATION中点击Open Implemented Design,然后选择Report Utilization。在生成的结果中选中某一类资源,会看到按模块排列的资源占用情况。b包含按数目或百分比显示的情况。在Tcl Console里面运行如下Tcl命令:report_utilization -hierarchical...
2020-07-18 17:15:38
5996
原创 vivado:[DRC BIVC-1] Bank IO standard Vcc: Conflicting Vcc voltages in bank 34.
报错:[USF-XSim-62] 'elaborate' step failed with error(s). Please check the Tcl console output or 'F:/vivado_project/timer/timer.sim/sim_1/behav/xsim/elaborate.log' file for more information.[Vivado 12-4473] Detected error while running simulation. Please c
2020-07-18 13:03:02
15192
8
空空如也
“移动边缘计算”及“遗传算法”论文有偿复现
2021-06-17
TA创建的收藏夹 TA关注的收藏夹
TA关注的人