I hereby claim:
- I am gilr00y on github.
- I am gilr00y (https://keybase.io/gilr00y) on keybase.
- I have a public key whose fingerprint is D442 C2E5 DEAE 7FC3 C8EA 3986 7FB1 8581 D81E EF35
To claim this, I am signing this object:
import numpy as np | |
import torch | |
class WindowUtils: | |
@staticmethod | |
def is_overlapping(window, annot): | |
crop_tolerance = 0.25 | |
win_min_x, win_min_y, win_max_x, win_max_y = window | |
ann_min_x, ann_min_y, ann_max_x, ann_max_y, cat = annot |
# AR transactions wrap a block of code, issuing a rollback if any errors are raised. | |
# | |
#(note: this gist makes use of SecondBase https://github.com/customink/secondbase) | |
require 'secondbase/model' | |
AR = ActiveRecord::Base | |
SB = SecondBase::Base | |
# The transaction returns the return value of the block | |
AR.transaction { 14 } #=> 14 |
# AR transactions wrap a block of code, issuing a rollback if any errors are raised, | |
# returning result of block if no errors. | |
#(note: this gist makes use of SecondBase https://github.com/customink/secondbase) | |
AR = ActiveRecord::Base | |
AR.transaction { 14 } #=> 14 | |
# Errors are propagated... | |
AR.transaction { raise } #=> RuntimeError |
# AR transactions wrap a block of code, issuing a rollback if any errors are raised, | |
# returning result of block if no errors. | |
#(note: this gist makes use of SecondBase https://github.com/customink/secondbase) | |
AR = ActiveRecord::Base | |
AR.transaction { 14 } #=> 14 | |
# Errors are propagated... | |
AR.transaction { raise } #=> RuntimeError |
# AR transactions wrap a block of code, issuing a rollback if any errors are raised, | |
# returning result of block if no errors. | |
#(note: this gist makes use of SecondBase https://github.com/customink/secondbase) | |
AR = ActiveRecord::Base | |
AR.transaction { 14 } #=> 14 | |
# Errors are propagated... | |
AR.transaction { raise } #=> RuntimeError |
# AR transactions wrap a block of code, issuing a rollback if any errors are raised, | |
# returning result of block if no errors. | |
#(note: this gist makes use of SecondBase https://github.com/customink/secondbase) | |
AR = ActiveRecord::Base | |
AR.transaction { 14 } #=> 14 | |
# Errors are propagated... | |
AR.transaction { raise } #=> RuntimeError |
# AR transactions wrap a block of code, issuing a rollback if any errors are raised, | |
# returning result of block if no errors. | |
#(note: this gist makes use of SecondBase https://github.com/customink/secondbase) | |
AR = ActiveRecord::Base | |
AR.transaction { 14 } #=> 14 | |
# Errors are propagated... | |
AR.transaction { raise } #=> RuntimeError |
I hereby claim:
To claim this, I am signing this object: