KeyError: 'Cache only has 0 layers, attempted to access layer with index 0'
摘要:Traceback (most recent call last): File "/disk2/xiaoming/Github/ChatHxk/chinese_alpaca_2_7b_16k_hf/hxk_demo.py", line 345, in gentask ret = self.mfunc
阅读全文
posted @
2024-03-13 10:17
一点飞鸿
阅读(817)
推荐(0)
AttributeError: 'tokenizers.AddedToken' object has no attribute 'special'
摘要:pip install tokenizers==0.14.0重新运行,报以下错误:ImportError: tokenizers>=0.11.1,!=0.11.3,<0.14 is required for a normal functioning of this module, but found
阅读全文
posted @
2024-03-05 14:44
一点飞鸿
阅读(476)
推荐(0)
xlrd.biffh.XLRDError: Can't load sheets after releasing resources
摘要:map_workbook = xlrd.open_workbook(excel_path_map)map_sheet = map_workbook.get_sheet(0) 改为: map_sheet = map_workbook.sheets()[0] #0为索引,第0张sheet
阅读全文
posted @
2023-08-10 18:21
一点飞鸿
阅读(410)
推荐(0)
Exception: Not found: 'python/cv2/py.typed'
摘要:Copying files from CMake outputcreating directory _skbuild/linux-x86_64-3.6/cmake-install/cv2copying _skbuild/linux-x86_64-3.6/cmake-install/python/cv
阅读全文
posted @
2023-07-26 17:57
一点飞鸿
阅读(2394)
推荐(0)
albumentations TypeError: Image must have uint8 channel type
摘要:MedAugment报错: Traceback (most recent call last): File "/disk2/ccc/Github/Medaugment/medaugment.py", line 234, in <module> main() File "/disk2/ccc/Gith
阅读全文
posted @
2023-07-26 17:56
一点飞鸿
阅读(97)
推荐(0)
Java gateway process exited before sending the driver its port number
摘要:在pycharm中安装pyspark时出现,网上的好多解决办法都试过了,后来找到原因,是因为本机的JKD卸载了,但是环境变量还在...
阅读全文
posted @
2023-07-19 17:27
一点飞鸿
阅读(113)
推荐(0)
RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation
摘要:RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation:
阅读全文
posted @
2023-04-10 18:08
一点飞鸿
阅读(1351)
推荐(0)
IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices
摘要:代码: cate_ids=np.unique(gt_box_array[:,-1]) for tmp_cateid in cate_ids: conf_matrix[tmp_cateid,0]+=1 原因:numpy里面不指定类型的话,默认是float64位,无法作为索引 修改:强转为int ,即c
阅读全文
posted @
2022-03-09 18:06
一点飞鸿
阅读(3523)
推荐(1)
Ubuntu16.04 导入tensorflow报错
摘要:错误1:Traceback (most recent call last): File "/home/lwc/anaconda3/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <mod
阅读全文
posted @
2019-04-21 14:15
一点飞鸿
阅读(339)
推荐(0)
C# Mysql 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 ????
摘要:有几年没用过MySql数据了,今天在使用C#访问MySql数据库时出现了一个小插曲。 错误提示: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
阅读全文
posted @
2016-06-30 19:00
一点飞鸿
阅读(1714)
推荐(0)