This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
Huawei_Technology
/
mindspore
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
13
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
fix: retinaface_resnet50 & psenet random get data timeout
tags/v1.2.0-rc1
jonyguo
5 years ago
parent
f544aa5c3b
commit
ba76356702
2 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
model_zoo/official/cv/psenet/src/dataset.py
+1
-0
model_zoo/official/cv/retinaface_resnet50/src/dataset.py
+ 2
- 0
model_zoo/official/cv/psenet/src/dataset.py
View File
@@ -172,6 +172,8 @@ def shrink(bboxes, rate, max_shr=20):
class TrainDataset:
def __init__(self):
cv2.setNumThreads(2)
self.is_transform = True
self.img_size = config.TRAIN_LONG_SIZE
self.kernel_num = config.KERNEL_NUM
+ 1
- 0
model_zoo/official/cv/retinaface_resnet50/src/dataset.py
View File
@@ -63,6 +63,7 @@ class WiderFace():
return self.images_list[item], self.labels_list[item]
def read_dataset(img_path, annotation):
cv2.setNumThreads(2)
if isinstance(img_path, str):
img = cv2.imread(img_path)
Write
Preview
Loading…
Cancel
Save