updates
This commit is contained in:
parent
1d45ec84bc
commit
4a5159710f
|
@ -89,7 +89,7 @@ def create_modules(module_defs, img_size, arc):
|
||||||
try:
|
try:
|
||||||
p = math.log(1 / (modules.nc - 0.99)) # class probability -> sigmoid(p) = 1/nc
|
p = math.log(1 / (modules.nc - 0.99)) # class probability -> sigmoid(p) = 1/nc
|
||||||
if arc == 'default' or arc == 'Fdefault': # default
|
if arc == 'default' or arc == 'Fdefault': # default
|
||||||
b = [-5.0, p] # obj, cls
|
b = [-4.5, p] # obj, cls
|
||||||
elif arc == 'uBCE': # unified BCE (80 classes)
|
elif arc == 'uBCE': # unified BCE (80 classes)
|
||||||
b = [0, -9.0]
|
b = [0, -9.0]
|
||||||
elif arc == 'uCE': # unified CE (1 background + 80 classes)
|
elif arc == 'uCE': # unified CE (1 background + 80 classes)
|
||||||
|
|
Loading…
Reference in New Issue