OFA-Sys / Chinese-CLIP

Chinese version of CLIP which achieves Chinese cross-modal retrieval and representation generation.
MIT License
4.38k stars 453 forks source link

fine tune报线程错误 求指导 #318

Open lll1024 opened 4 months ago

lll1024 commented 4 months ago

Exception in thread Thread-1: Traceback (most recent call last): File "/home/liujiawei/anaconda3/envs/game0/lib/python3.8/threading.py", line 932, in _bootstrap_inner

sun254667307 commented 4 months ago

dataloader设置num_workers=0

lll1024 commented 3 months ago

num_workers=0 # 训练集pytorch dataloader的进程数,设置为>0,以减小训练时读取数据的时间开销 valid_num_workers=0 # 验证集pytorch dataloader的进程数,设置为>0,以减小验证时读取数据的时间开销 我已经把这两个参数设为0了,但还是报这个错误: Exception in thread Thread-1: Traceback (most recent call last):

lll1024 commented 3 months ago

File "/home/liujiawei/anaconda3/envs/game0/lib/python3.8/threading.py", line 932, in _bootstrap_inner 不过这一行没有出现了