VAEPytorch1.pip版本的适配pip install –upgrade pip(更新pip)python -m pip install pip==19.2(降级pip)这里使用20.2.4安装比较好
2.conda命令conda remove -n VAEPytorch –allconda create –name VAEPytorch python=3.6
3.使用python run.py -c configs/bbvae.yaml
4.pytorch安装要cuda11.3
VAE学长1.pip版本的适配conda create –name VAE python=3.6
友情链接1.https://blog.csdn.net/qq_39635835/article/details/140235059 NCCL检测不到的问题
开发背景由于是某苦逼学委,经常遇到少数几个人没交作业的情况。该代码可以帮助清点作业,希望能帮到大家。
代码部分1234567891011121314151617import osimport pandas as pdfolder_path = r''#配置你自己的文件夹路径eg:C:\Users\86159\Desktop\项目管理论文excel_path = r""#配置你自己的名单路径eg:D:\user\班级资料\名单.xlsxfiles_in_folder = [f for f in os.listdir(folder_path) if os.path.isfile(os.path.join(folder_path, f))]df = pd.read_excel(excel_path)df['是否包含'] = '否'for index, row in df.iterrows(): name_to_check = row['Name'] # 在你的Excel中创建一个名为& ...
初窥人工智能时代
“ChatGPT”、“OpenAI”、“通用人工智能”,“大模型”,“提示词工程”,“AIagent”,“LangChain”,“Token”,这些人工智能行业的黑化在2023这个普通又神奇的年份里不断冲刷着大家的认知。相信同学们对这些热门话题都有一定的了解。但到底什么是大模型?国内外发展状况是怎样的?在人工智能火热的今天我们将如何自处?本文将会避免专业晦涩的词汇,从学生的角度,分四个方面为同学们一一讲清楚这些问题。
一、什么是大模型?
大模型按照功能可分为NLP大模型、CV大模型、科学计算大模型和多模态大模型。
CV(计算机视觉)方向:人脸识别、物体检测等,典例如腾讯的PCAM模型。
科学计算方向:主要用于解决科学领域的计算问题,如华为的盘古气象模型。
多模态方向:比较火的有文生图,文生音,典例如StabilityAI的stablediffusion。
NLP(自然语言处理)方向:我们所熟知的OpenAI的GPT系列模型就是这个方向,具备强大的语言理解和生成能力。
本文主要对NLP方向的模型进行科普,下文提到的大模型都是N ...
tips
未读代码部分1.在指定conda下运行某行命令123import subprocesscommand_1 = (r'cmd.exe /c conda run -n svc python D:\user\PycharmProjects\ai_video\my_resample.py --in_dir D:\user\PycharmProjects\ai_video\original_music --out_dir2 D:\user\PycharmProjects\ai_video\resample_original_music')subprocess.run(command_1, shell=True, check=True)
2.如果需要用到管理员权限12345678910import ctypesdef is_admin(): try: return ctypes.windll.shell32.IsUserAnAdmin() except: return Falseif is_admin(): #在此输入你要用管理员权限执 ...
代码部分1.安装pytorch版本的faiss_gpu这里用到12.4的cuda,使用的pytorch版本为2.4.0conda install -c pytorch faiss-gpu
2.炼丹代码cd D:\user\PycharmProjects\ai_video\so-vits-svcpython resample.pypython preprocess_flist_config.py –speech_encoder vec768l12python preprocess_hubert_f0.py –f0_predictor rmvpepython train.py -c configs/config.json -m 44k
3.模型推理conda run -n svc python D:\user\PycharmProjects\ai_video\qulingwen_so-vits-svc\inference_main.py -m “logs/44k/G_9600.pth” -c “logs/44k/config.json” - ...
环境配置1.conda虚拟环境conda remove -n onnx_tf –allconda create –name SmartHome python=3.8conda create -n newname –clone oldname
2.pip 版本控制pip install –upgrade pip(更新pip)
python -m pip install pip==20.2.4(降级pip)
3.cuda与pytorch版本检查nvcc -V(检查cuda版本)
pythonimport torchtorch.version
4.从不同源安装pip包pip install –index-url https://pypi.org/simple tensorboard 默认源pip install –index-url https://mirror.tuna.tsinghua.edu.cn/pypi/web/simple pyqt6-tools 清华源pip install –index-url https://pypi.tuna.tsinghua ...
代码部分1.代码示例123456789101112131415import osfrom zhipuai import ZhipuAIclient = ZhipuAI(api_key="") # 填写您自己的APIKeyresponse = client.chat.completions.create( model="glm-4", # 填写需要调用的模型名称 messages=[ {"role": "user", "content": "你好"}, {"role": "assistant", "content": "我是人工智能助手"}, {"role": "user", "content": "你叫什么名字&qu ...
工程记录
未读代码部分1.403链接失败的解决方法,老是用梯子的报应git config –global http.proxy http://127.0.0.1:21882git config –global https.proxy http://127.0.0.1:21882设置个人接口git config –global –unset http.proxygit config –global –unset https.proxy取消个人接口设置
2.hexo三件套hexo cleanhexo ghexo d
3.可以尝试ping一下github看看是不是网络传输问题ping github.com
4.本地测试方法hexo s然后访问 http://localhost:4000/
5.yml设置别忘了改deploy: type: git repo: https://github.com/TheQOfHometown/theqofhometown.github.io.git branch: main
友情链接1.https://blog.csdn.net/wxmiy/article/detai ...