MCPcopy Create free account
hub / github.com/cpystan/SD-VLM / __init__

Method __init__

evaluation/evaluate_final.py:27–29  ·  view source on GitHub ↗
(self,)

Source from the content-addressed store, hash-verified

25
26class Counter_quantity():
27 def __init__(self,):
28 self.counter = {'total':{'count': 0, 'rate': [0,0,0],'ratio':[0,0,0]}}
29 self.error = {'total':{'count': 0, 'rate': 0,'ratio':0}}
30 def add(self,type_name,rate):
31 name = 'total'
32 self.counter[name]['count']+=1

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected