摘要: 参考的学习教程: https://fastapi.tiangolo.com/zh/async/ https://liaoxuefeng.com/books/python/async-io/asyncio/index.html 1. 在fastAPi中, 定义的接口可以使用async。也可以不使用。都 阅读全文
posted @ 2025-06-26 14:46 纯丿乱 阅读(0) 评论(0) 推荐(0)
摘要: 接口都用POST 左边新能源概况在任务2中已经做完。 只需做右边的信息: /api/monitor/output_info 根据时间获得出力汇总 入参 time(yyyyMMdd) 出参是一个map,{ wind_max_output:(time,value) wind_min_output :(t 阅读全文
posted @ 2025-06-15 21:11 纯丿乱 阅读(23) 评论(0) 推荐(0)
摘要: 前后端接口都用POST 前后端接口 /api/monitor/main_view 获得寻能源概况 入参为空 出参是 sum_power (float) 、wind_power(float) 、sunshine_power(float) /api/monitor/main_view 获得寻能源概况 ( 阅读全文
posted @ 2025-06-15 20:52 纯丿乱 阅读(23) 评论(0) 推荐(0)
摘要: 页面位置: 系统界面\2综合预测\1功率预测 前后端接口 /api/power_predict 根据时间预测中期、短期、超短期的风功率 入参:kind (可选值 middle 、short、 very_short) 代表的 中期、短期、超短期 from_data (yyyyMMdd格式) 开始日期 阅读全文
posted @ 2025-06-15 20:37 纯丿乱 阅读(31) 评论(0) 推荐(0)
摘要: thinkpad电脑傻逼,cpu降频 去 设备管理器,系统设备, 把这两个禁用,就行了。 傻逼联想,让老子浪费了好几个小时。 阅读全文
posted @ 2025-06-10 10:51 纯丿乱 阅读(6) 评论(1) 推荐(0)
摘要: https://blog.csdn.net/weixin_39919140/article/details/146095605 阅读全文
posted @ 2025-05-29 18:01 纯丿乱 阅读(2) 评论(0) 推荐(0)
摘要: windows10安装easyRAG 1.安装cuda11.8 2.安装 pytorch install pytorch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 pytorch-cuda=11.8 -c pytorch -c nvidia 3. 安装 阅读全文
posted @ 2025-05-29 12:07 纯丿乱 阅读(4) 评论(0) 推荐(0)
摘要: UniversalRAG: Retrieval-Augmented Generation over Corpora of Diverse Modalities and Granularities 多模态RAG,训练了一个路由器,用于选择是哪个模态 阅读全文
posted @ 2025-05-22 14:35 纯丿乱 阅读(8) 评论(0) 推荐(0)
摘要: import argparsedef aaa(): parser = argparse.ArgumentParser() parser.add_argument('--a1',type = str, help='用户名') parser.add_argument('--a2',type = str, 阅读全文
posted @ 2025-05-21 22:42 纯丿乱 阅读(4) 评论(0) 推荐(0)
摘要: 迁移miniconda的环境。 我的两个机器的操作系统, cuda 都是一样的 1.打包文件 pip install conda-pack conda pack -p /root/miniconda3/envs/trajcast 2.然后去复制到另外一个机器上 3.mkdir /root/minic 阅读全文
posted @ 2025-04-29 10:30 纯丿乱 阅读(78) 评论(0) 推荐(0)