Skip to content

Commit

Permalink
update search with int flow
Browse files Browse the repository at this point in the history
  • Loading branch information
gauenk committed Oct 26, 2023
1 parent c434272 commit 8b9e4c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/stnls/search/non_local_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ def nls_forward(vid0, vid1, flows,

# -- forward --
if itype == "int":
flows = flows.round().int()
if flows.dtype != th.int:
flows = flows.round().int()
else:
flows = flows.int()
inds = inds.int()
stride1 = max(1,int(stride1))
fwd_fxn = stnls_cuda.non_local_search_int_forward
Expand Down

0 comments on commit 8b9e4c4

Please sign in to comment.