11 2022 档案
tqdm不可调用
摘要:问题 tqdm是显示数据处理进度条 使用import tqdm报错 ‘module’ object is not callable import tqdm datafields = [("text", TEXT), ("label", LABEL)] train_examples= [] for t
argparse简单应用
摘要:def main(args): print(args.data_path) if __name__=='__main__' import argparse parser = argparse.ArgumentParser(description=__doc__) # 数据集路径 parser.add
更改pip安装路径
摘要:pip show matplotlib查看安装位置 去python环境下lib/site.py文件里修改user_site和user_base USER_SITE,更改为anaconda的Lib文件夹下的site-packages文件夹。 USER_BASE,更改为anaconda的Scripts文
python自定义函数文件在别的文件夹
摘要:在main.py的开头添加 import os import sys BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.append(BASE_DIR)
undefined reference to `TIFFGetSizeProc@LIBTIFF_4.0'
摘要:重新编译opencv sudo cmake -DBUILD_TIFF=ON ..
c++调用python
摘要:cmakelists cmake_minimum_required(VERSION 3.20) project(python_test) #python set(Python3_ROOT_DIR "/home/ubuntu/miniconda3/envs/python38") set(PYTHON_
wsl-ubuntu配置cuda
摘要:下载cuda https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&Distribution=WSL-Ubuntu&target_version=2.0&target_type=deb_netwo
kali-linux tab
摘要:ln -sf bash /bin/sh 查看一下我们的文件是否修改成功,成功的话是 bash 而不是 dash ls -l /bin/sh apt-get install bash-completion 重启wsl wsl --shutdown wsl
使用gcc11
摘要:sudo apt install gcc-11 g++-11 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 11 sudo update-alternatives --install /usr/bin/g++
labelme使用笔记
摘要:label.txt __ignore__ _background_ welding_wire 焊丝 protection_cover 保护罩 welding_seam 焊缝 vertical_welding0 垂直焊材0 vertical_welding1 垂直焊材1 base_metal 母材(整
wsl配置ubuntu
摘要:https://learn.microsoft.com/zh-cn/windows/wsl/ D:\ProgramData\ubuntu>wsl --list --online 以下是可安装的有效分发的列表。 请使用“wsl --install -d <分发>”安装。 NAME FRIENDLY N