-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpseudoopt.py
More file actions
65 lines (62 loc) · 1.34 KB
/
pseudoopt.py
File metadata and controls
65 lines (62 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
"""
Quickly chucking together class to replicate parser object
"""
from yolor.models.models import save_weights
class valopt:
weights: list
names: str
batch_size: int
img_size: int
log_images: bool
conf_thres: float
iou_thres: float
task: str
device: str
single_cls: bool
augment: bool
verbose: bool
save_txt: bool
save_json: bool
project: str
name: str
exist_ok: bool
cfg: str
def __init__(
self,
weights,
names,
batch_size,
img_size,
log_images,
conf_thres,
iou_thres,
task,
device,
single_cls,
augment,
verbose,
save_txt,
save_json,
project,
name,
exist_ok,
cfg
):
self.weights = weights
self.names = names
self.batch_size = batch_size
self.img_size = img_size
self.log_images = log_images
self.conf_thres = conf_thres
self.iou_thres = iou_thres
self.task = task
self.device = device
self.single_cls = single_cls
self.augment = augment
self.verbose = verbose
self.save_txt = save_txt
self.save_json = save_json
self.project = project
self.name = name
self.exist_ok = exist_ok
self.cfg = cfg