chenying99

Results 8 issues of chenying99

您好,CBTaggingDecoder实例化对象多线程调用存在线程安全问题,里面的成员变量不是线程安全的 每次调用分词方法存在对成员变量的写操作; 反之,如果每次new一个CBTaggingDecoder对象(初始化成员变量等),则模型文件需要重新加载,开销很大 能不能优化一下,使得既能够多线程调用,然后不需要重新加载模型文件(至少重用模型数据结构,或者CBTaggingDecoder对象单例化) 这里的部分成员变量在调用分词方法 有写操作 private int maxLength; private int len; private String sequence; private int[][] allowedLabelLists; private int[][] pocsToTags; private CBNGramFeature nGramFeature; private Dat dat; private CBModel model;...

首先,需要了解一些基本事实: 􀂄 中国的小麦依靠自给。 据香港媒体报导,嫩模Jeana(何佩瑜)四处惹是非,结果被其他𡃁模群起围攻,指她整容。 at java.util.Vector.get(Unknown Source) at org.thunlp.thulac.cb.CBTaggingDecoder.segment(CBTaggingDecoder.java:276) 貌似是POCGraph graph对象与句子长度不一致 句子中特殊字符占据两个长度,而POCGraph graph对象少了一个长度 补充: 后面的方法 this.nGramFeature.putValues(sequence, len); 里面用到sequence.charat(i)方法,都会出问题了

the file loss.py in line 181 182 183: euclidean = tf.linalg.norm(b2_center - b1_center) diag_length = tf.linalg.norm([enclose_ymax - enclose_ymin, enclose_xmax - enclose_xmin]) diou = iou - (euclidean ** 2) / (diag_length...

keras-preprocessing/keras_preprocessing/image/affine_transformations.py line 85 86 tx = np.random.uniform(-hrg, hrg) * h ty = np.random.uniform(-wrg, wrg) * w should be: ty = np.random.uniform(-hrg, hrg) * h tx = np.random.uniform(-wrg, wrg) * w...

image

请问训练时,传入损失函数的ground truth的格式是**单通道**的,如 0, 1 ,2, 3, 4, 5, ....这样的格式么? 而不是one hot的 多通道的,如 0, 0, 1, 0, 0, .......这样的格式吧 detail_loss.py文件中的class DetailAggregateLoss的方法 def forward(self, boundary_logits, gtmasks) 这里的gtmasks也就是单通道的格式吧? 在此基础上进行laplacian_kernel 卷积计算? 同时loss.py文件的class OhemCELoss(nn.Module)的方法 def...

(1)请问 训练的时候,是不是iou>0.5的prior box设置为正样本,iou

我看到网上别人贴出来的响应,有使用量记录,不知这个怎么没有?谢谢 类似下面这样的(usage): ```{ "id": "chatcmpl-6q0Kqgk2qlcpCGDYcLQnUmUVVrMd6", "object": "chat.completion", "created": 1677852364, "model": "gpt-3.5-turbo-0301", "usage": { "prompt_tokens": 69, "completion_tokens": 20, "total_tokens": 89 }, "choices": [ { "message": { "role": "assistant", "content": "起草一封电子邮件或其他写作材料。" },...

请问https代理是这么使用吗? ``` import requests def get_proxy(): return requests.get("http://127.0.0.1:5010/get/?type=https").json() # 添加参数?type=https def delete_proxy(proxy): requests.get("http://127.0.0.1:5010/delete/?proxy={}".format(proxy)) ``` 然后下面requests使用: ``` html = requests.get('http://www.example.com', proxies={"http": "http://{}".format(proxy)}) ``` 应该修改为? ``` html = requests.get('http://www.example.com', proxies={"https": "http://{}".format(proxy)}) ```...