Skip to content

Instantly share code, notes, and snippets.

View maheshs11's full-sized avatar

mahesh maheshs11

  • bangalore
View GitHub Profile
@maheshs11
maheshs11 / links
Last active August 13, 2022 05:18
links to install multiple wheels from directory
image = cv2.imread("/content/paper1.jpg")
_shape_1= image.shape
print("The shape of image is:",_shape_1)
print("The product shape of image is:", np.prod(_shape_1))
dim = np.prod(_shape_1)
num = dim
factors=[]
for i in range(1,num+1):
if num%i==0:
def godspeed():
runner = GeneralizedRCNNRunner()
cfg = runner.get_default_cfg()
cfg.merge_from_file(r"/home/pi/Desktop/train/mask_model2_config/config2 (2).yml")
cfg.MODEL.ROI_HEADS.SCORE_THRESH_TEST = 0.9 # set threshold for this model
cfg.MODEL.DEVICE = "cpu"
cfg.QUANTIZATION.BACKEND = 'qnnpack'
torch.backends.quantized.engine = 'qnnpack'
model = create_predictor('/home/pi/Desktop/train/predictor_path_mask2_custom')
#mp.set_start_method("spawn",force = True)
import pandas as pd
window_length = 5
stride = None
horizon=1
df = pd.read_csv("trainbins.csv")
print(df)
X, y = SlidingWindow(window_length, stride=stride, horizon=horizon)(df)
X = X.astype('float')
splits = get_splits(y, valid_size=.2, stratify=True, random_state=23, shuffle=False)
@maheshs11
maheshs11 / app.py
Last active June 16, 2021 16:55
test
'Gotcha'
Used you as a Ground truth