Skip to content

Instantly share code, notes, and snippets.

View saahiluppal's full-sized avatar
💭
Passion !!

Sahil Uppal saahiluppal

💭
Passion !!
View GitHub Profile
" nvim-completion setup
" Tab S-Tab movement
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
" Config
lua << EOF
require'compe'.setup {
enabled = true;
autocomplete = true;
debug = false;
@saahiluppal
saahiluppal / exp0.ipynb
Created March 31, 2021 06:25
exp0.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import torch
from transformers import BertTokenizer
from PIL import Image
import argparse
import os
from datasets import coco, utils
from configuration import Config
I DON'T KNOW HOW TO EMBED EMAIL ADDRESS INTO GITHUB'S MARKDOWN.
<sahiluppal2k@gmail.com>
IF YOU KNOW HOW TO DO THIS, YOU CAN MAIL ME.
YOU GOT MY MAIL RIGHT?
import glob
import os
import cv2
import pytesseract
import utils
import json
import matplotlib.pyplot as plt
ANNOT_FILE = "annotations.json"
DATA_DIR = "/home/prime/Dataset/lines"
bargain soccer fold twelve truly crisp adapt snack zone exclude budget bring
https://bscscan.com/address/0x05eE5A9C6f70c41a7EF4a9695Be1e5b6ddcB4386
raw_data/drive-download-001/Application Development and Services Agreement - executed 171219 2.pdf
raw_data/drive-download-001/Application Development and Services Agreement - executed 171219.pdf
raw_data/drive-download-001/Coffee 02-05-2023.pdf
raw_data/drive-download-001/Coffee 15-05-2023.pdf
raw_data/drive-download-001/Coffee 17th July 2.pdf
raw_data/drive-download-001/Coffee 2 02-05-2023.pdf
raw_data/drive-download-001/Coffee 2 15-05-2023.pdf
raw_data/drive-download-001/Coffee Sanjay 16-05-2023.pdf
raw_data/drive-download-001/Coffee Team 02-05-2023.pdf
raw_data/drive-download-001/Drinks ClickQA CEO 15-05-2023.pdf
@saahiluppal
saahiluppal / CategoryNames
Last active February 14, 2024 10:01
Zeroshot Classification CategoryNames + Templates
{
"food101": [
"apple pie",
"baby back ribs",
"baklava",
"beef carpaccio",
"beef tartare",
"beet salad",
"beignets",
"bibimbap",
from torchvision.transforms import Resize
from torchvision.transforms import InterpolationMode
import numpy as np
dims, channels = (224, 224), 3
mean = (0.48145466, 0.4578275, 0.40821073)
std = (0.26862954, 0.26130258, 0.27577711)
resize_fn = Resize(dims, interpolation=InterpolationMode.BICUBIC)
{
"apple pie": "[\"pizza\", \"pizza\", \"making pizza\", \"Pizza Tossing\", \"pizza\"]",
"baby back ribs": "[\"crab cakes\", \"lobster bisque\", \"lobster roll sandwich\", \"Dungeness crab\", \"rock crab\", \"fiddler crab\", \"red king crab\", \"American lobster\", \"spiny lobster\", \"hermit crab\", \"crab\", \"lobster\"]",
"baklava": "[\"beet salad\", \"bee eater\", \"bee\", \"bee keeping\", \"bee balm\"]",
"beef carpaccio": "[\"cheese plate\", \"grilled cheese sandwich\", \"plate rack\", \"plate\", \"making cheese\"]",
"beef tartare": "[\"zucchini\", \"spaghetti squash\", \"acorn squash\", \"butternut squash\", \"eating spaghetti\"]",
"beignets": "[\"pizza\", \"pizza\", \"making pizza\", \"Pizza Tossing\", \"pizza\"]",
"bibimbap": "[\"barbell\", \"sandbar\", \"barbequing\", \"bar\", \"sandbar\", \"wet bar\"]",
"bread pudding": "[\"cheese plate\", \"grilled cheese sandwich\", \"plate rack\", \"plate\", \"making cheese\"]",
"breakfast burrito": "[\"pizza\", \"pizza\", \"ma