Skip to content

Instantly share code, notes, and snippets.

View xksteven's full-sized avatar
🤖

Steven Basart xksteven

🤖
View GitHub Profile
@xksteven
xksteven / openai_example.py
Last active March 3, 2023 17:35
Small python example to use openAI api with retries.
import json
import time
from typing import List
import time
from typing import Dict, List, Mapping, Optional
import numpy as np
import openai
import wandb
@xksteven
xksteven / bbox_augmentation.py
Last active July 25, 2020 19:56
Bounding Box Augmentation (crop, and resize) for Self-Supervision
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
import torch
import torchvision.transforms as transform
import torchvision.transforms.functional as F
from PIL import Image
from typing import List