This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import torch | |
| import shutil | |
| import tempfile | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| from PIL import Image | |
| from hydra.core.global_hydra import GlobalHydra | |
| from hydra import initialize_config_dir | |
| from sam2.build_sam import build_sam2_video_predictor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # List containing multiple questions & answers | |
| questions = [{ | |
| id: 0, | |
| 'question': 'What is 2+2?', | |
| 'answer': '4', | |
| 'explain': 'Abbe basic maths yaar!' | |
| }, { | |
| id: 1, | |
| 'question': 'Is earth flat? Write y/n', | |
| 'answer': 'y', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://mega.nz/folder/Z7QiAQ7R#gcaEF8anUTZDntPSwgVe6Q |