Skip to content

Commit

Permalink
fix naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
NevermindNilas committed Dec 26, 2024
1 parent db44dcb commit 249969f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/dedup/dedup.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def processFrame(self, frame):
)


class FlownetSDedup:
class DedupFlownetS:
def __init__(
self,
half: bool = True,
Expand Down Expand Up @@ -293,8 +293,7 @@ def prepareFrame(self, frame):
def __call__(self, frame):
if self.prevFrame is None:
with torch.cuda.stream(self.normStream):
self.prevFrame = frame
self.prevFrame = self.prepareFrame(self.prevFrame)
self.prevFrame = self.prepareFrame(frame)
self.normStream.synchronize()
return False

Expand Down
4 changes: 2 additions & 2 deletions src/utils/initializeModels.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,9 +475,9 @@ def initializeModels(self):
)

case "flownets":
from src.dedup.dedup import FlownetSDedup
from src.dedup.dedup import DedupFlownetS

dedup_process = FlownetSDedup(
dedup_process = DedupFlownetS(
half=self.half,
dedupSens=self.dedup_sens,
height=self.height,
Expand Down

0 comments on commit 249969f

Please sign in to comment.