摘要: 使用之前只需要简单的设置两个变量即可: Memory_Allocated_GB = 5 # GiB,需要占用的显存大小,单位GiB GPU_ID = 2 # 需要卡显存的GPU ID import torch from torch import cuda import time import psu 阅读全文
posted @ 2022-01-19 00:49 玖玖牛 阅读(259) 评论(0) 推荐(0)
摘要: 1. 安装(Ubuntu) 1.1 snap安装 sudo snap install bashtop 1.2 apt安装 sudo apt-get install software-properties-common sudo add-apt-repository ppa:bashtop-monit 阅读全文
posted @ 2022-01-18 22:23 玖玖牛 阅读(144) 评论(0) 推荐(0)
摘要: 1. PyQt和PySide 1.1 最大的区别 PyQt是GPL/商业协议,PySide是LGPL/GPL/商业协议。 PySide(Qt for Python)使用的是LGPL协议,通过一定的手段(调用库、wrapper等),可以在发布程序时合法合理地闭源或使用其他开源协议。Qt for Pyt 阅读全文
posted @ 2022-01-14 22:15 玖玖牛 阅读(803) 评论(0) 推荐(0)
摘要: 1. 手动添加 INCLUDEPATH += \ D:/ProgramData/libtorch/include \ D:/ProgramData/libtorch/include/torch/csrc/api/include \ D:/ProgramData/opencv/build/includ 阅读全文
posted @ 2022-01-14 02:47 玖玖牛 阅读(590) 评论(0) 推荐(0)
摘要: 1. 介绍 Screen是一个全屏窗口管理器,它在几个进程(通常是交互式shell)之间复用物理终端。每个虚拟终端提供DEC VT100终端的功能,此外,ANSI X3.64 (ISO 6429)和ISO 2022标准的几个控制功能(例如,插入/删除行和支持多字符集)。每个虚拟终端都有一个滚动历史缓 阅读全文
posted @ 2022-01-13 23:40 玖玖牛 阅读(1750) 评论(0) 推荐(0)
摘要: 1. 虚拟机概况 单个虚拟机的配置:4核、2.5GB内存、单独挂载两个50G硬盘、为了节省资源采用最小安装。系统可用内存2.0G左右,给操作系统预留200MB,剩下的1800MB全部给hadoop系统使用。 2. hadoop系统内存设置(草稿) 3. 详细配置文件 附件(环境变量配置+hadoop 阅读全文
posted @ 2021-06-11 22:08 玖玖牛 阅读(121) 评论(0) 推荐(0)
摘要: 1 import cv2 2 import sys 3 4 path = 'D:\jiji_download\花花世界迷人眼❀波喵一花依世界' 5 video_filename = '1.❀波喵❀(Av926216547,P1).mp4' 6 vc = cv2.VideoCapture(path + 阅读全文
posted @ 2020-08-13 15:08 玖玖牛 阅读(1459) 评论(0) 推荐(0)
摘要: 国内常用镜像: 阿里云 https://mirrors.aliyun.com/pypi/simple/ 豆瓣 https://pypi.douban.com/simple/ 清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/ 中国科学技术大学 https:/ 阅读全文
posted @ 2020-08-13 14:21 玖玖牛 阅读(299) 评论(0) 推荐(0)
摘要: 0 n01440764 tench 鱼 1 n01443537 goldfish 鱼 2 n01484850 great_white_shark 鱼 3 n01491361 tiger_shark 鱼 4 n01494475 hammerhead 鱼 5 n01496331 electric_ray 阅读全文
posted @ 2020-08-12 21:53 玖玖牛 阅读(5384) 评论(0) 推荐(0)
摘要: 1 from PIL import ImageGrab 2 import time 3 import winsound 4 5 6 def screenshot(): 7 while True: 8 time.sleep(3) 9 filename = "D:\\DataSet\\WZRY\\" + 阅读全文
posted @ 2020-08-12 21:37 玖玖牛 阅读(697) 评论(0) 推荐(0)