- 博客(94)
- 收藏
- 关注
原创 将一个(768,1)的张量转换为(1024,)
我想要将一个(768,1)的张量转换为(1024,)试了下面几个方法都没有得到目标结果。最后通过零填充实现的。
2024-04-26 09:51:18 66
原创 springboot no mapping for.....解决办法
这个问题是由于没有加入对应的GET,POST注解,导致映射失败,加入对应注解就ok了。
2024-04-21 19:40:24 208
原创 Consider defining a bean of type ‘com.sky.service.DishService‘ in your configuration.怎么解决
这个问题通常是因为Spring Boot无法找到你指定的bean。在你的代码中,你已经定义了一个名为。的类,但是Spring可能在寻找一个名为。这样,Spring Boot就能找到。包下创建一个新的Java接口文件。
2024-04-21 11:03:11 303
原创 tmux命令
tmux是一种后台窗口工具,我们平时远程连接服务器的时候如果自己的电脑关闭,那么连接也会断开,正在运行的程序也就会终止,tmux就可以让我们的程序在后台运行,即使我们的本地机器关机也不会影响服务器中正在运行的程序。下面给出一些tmux的常用命令。
2024-04-17 14:27:26 429
原创 RuntimeError: Expected to have finished reduction in the prior iteration before starting a new one.
在DistributedDataParallel中加入find_unused_parameters=True,如model = torch.nn.parallel.DistributedDataParallel(model, device_ids=[args.local_rank], output_device=args.local_rank, find_unused_parameters=True)这是因为部分参数没有参与计算loss。
2024-04-17 12:13:40 180
原创 ERROR: Could not build wheels for matplotlib, which is required to install pyproject.toml-based
将pip install 换成conda install即可。
2024-04-11 16:34:01 429 1
原创 报错 ERROR: Unknown host ‘android-mirror.bugly.qq.com‘. You may need to adjust the proxy settings
报错 ERROR: Unknown host 'android-mirror.bugly.qq.com'. You may need to adjust the proxy settings
2024-04-11 10:41:04 259
原创 AttributeError: module ‘backend_interagg‘ has no attribute ‘FigureCanvas‘原因及解决办法
AttributeError: module 'backend_interagg' has no attribute 'FigureCanvas'原因及解决办法
2023-12-20 20:41:32 743
原创 什么是预训练
预训练是出于特殊数据集和低成本数据集数量差距悬殊而提出的一种模型训练方法,即先通过大量的数据集训练得到一组权重可以较好的识别这些数据的共性,从而进行分类、检测等操作,当我们需要处理自己特殊需求的任务时,我们就可以借助之前训练好的模型来针对我们的数据进行参数的调整,从而大大减少了数据集的需求和工作量。
2023-12-19 21:58:36 435
原创 TypeError: expected str, bytes or os.PathLike object, not list原因及解决办法
这个错误通常发生在尝试使用 os 或 zipfile 等库的函数时,传递了不正确的参数类型。因为传递了一个列表对象,但库函数期望接收字符串、字节或类似路径的对象作为参数。os.path.relpath(file_path, folder_path)其中的file_path应该为字符串,但是我搞成了列表,故报错。
2023-12-18 21:55:07 1306
原创 “SELECT * FROM image where %s = ‘1‘ “, (selectedColumn,)这个SQL语句哪里错了
在 SQL 查询语句中,如果要动态地指定列名,需要将列名直接添加到 SQL 查询语句中,而不是作为参数传递。这是因为 SQL 参数化查询中的参数通常用于传递数值或字符串等常量值,而不是用于指定列名或表名。这将把 selectedColumn 变量的值直接嵌入到 SQL 查询语句中,但请确保 selectedColumn 的值是一个有效的列名,以避免 SQL 注入攻击。
2023-12-17 15:09:27 96
原创 (1064, “You have an error in your SQL syntax; check the manual that corresponds to your MySQL server
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '== '1'' at line 1")原因及解决办法
2023-12-16 13:21:34 1116
原创 ValueError: invalid literal for int() with base 10: ‘2464,2465,2466,2467,2468‘原因及解决办法
ValueError: invalid literal for int() with base 10: '2464,2465,2466,2467,2468'原因及解决办法
2023-12-16 13:19:37 71
原创 TypeError: %d format: a number is required, not str原因及解决办法
TypeError: %d format: a number is required, not str原因及解决办法
2023-12-14 21:19:49 883
原创 TypeError: Cannot read properties of undefined (reading ‘row‘)原因及解决办法
TypeError: Cannot read properties of undefined (reading 'row')原因及解决办法
2023-12-14 21:18:36 1703
原创 OSError: [WinError 123] 文件名、目录名或卷标语法不正确。: ‘http://localhost:5000/static/images/DICOMDIR 5.26-6.1/364
http://localhost:5000/static/images/DICOMDIR 5.26-6.1/3644351_GOUT_1_0_12.png是存储在数据库中提供给前端用于获取后端图片文件的URL,但是计算机在本地找不到这个地址,需要将http://localhost:5000/去掉
2023-12-12 21:03:40 259
原创 怎么让div中两个元素位于两端
怎么让div中两个元素位于两端将div设置为flex布局,并且将justify-content属性设置为space-between;
2023-12-12 21:01:53 245
原创 GET : 405 (METHOD NOT ALLOWED)错误语言及解决办法
GET http://localhost:5000/dicom_upload 405 (METHOD NOT ALLOWED)
2023-12-11 19:47:39 624
原创 AssertionError: View function mapping is overwriting an existing endpoint function: get_image_data
AssertionError: View function mapping is overwriting an existing endpoint function: get_image_data
2023-12-10 16:54:19 400
原创 TypeError: ‘list‘ object is not callable
TypeError: 'list' object is not callable
2023-12-10 16:52:43 339
原创 PermissionError: [Errno 13] Permission denied,后端处理文件时报错
PermissionError: [Errno 13] Permission denied,后端处理文件时报错
2023-12-09 22:10:26 209
原创 flask跨域访问问题has been blocked by CORS policy: No ‘Access-Control-Allow-Origin‘ header is present
flask跨域访问问题Access to XMLHttpRequest at 'http://localhost:5000/get_image_data' from origin 'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource
2023-12-09 22:09:06 218
原创 华为SDC开发报错./hal_nn: error while loading shared libraries: libdsp.so: cannot open shared object file
华为SDC开发报错./hal_nn: error while loading shared libraries: libdsp.so: cannot open shared object file
2023-12-08 10:44:21 27
原创 华为SDC下载编译工具链出现错误Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof
下载编译工具链出现错误arm-himix200-linux-gcc: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.已放弃 (核心已转储)
2023-12-07 14:51:33 60
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人