Skip to content

Instantly share code, notes, and snippets.

View priyanksonis's full-sized avatar
🎯
Focusing

Priyank Soni priyanksonis

🎯
Focusing
View GitHub Profile
import pandas as pd
import numpy as np
import torch
from transformers import T5ForConditionalGeneration,T5Tokenizer
import time
def set_seed(seed):
torch.manual_seed(seed)
if torch.cuda.is_available():
@priyanksonis
priyanksonis / client1.py
Last active September 12, 2019 12:05
two clients and one simulation
import os
import sys
import optparse
import time
import threading
if 'SUMO_HOME' in os.environ:
tools = os.path.join(os.environ['SUMO_HOME'], 'tools')
sys.path.append(tools)
@priyanksonis
priyanksonis / client1.py
Created September 12, 2019 08:53
Give commands to one simulation in SUMO from two different clients
import os
import sys
import optparse
import time
import threading
if 'SUMO_HOME' in os.environ:
tools = os.path.join(os.environ['SUMO_HOME'], 'tools')
sys.path.append(tools)
('Input image shape:', (1, 224, 224, 3))
('Input image shape:', (1, 224, 224, 3))
('Input image shape:', (1, 224, 224, 3))
('Input image shape:', (1, 224, 224, 3))
('Input image shape:', (1, 224, 224, 3))
('Input image shape:', (1, 224, 224, 3))
('Input image shape:', (1, 224, 224, 3))
('Input image shape:', (1, 224, 224, 3))
('Input image shape:', (1, 224, 224, 3))
('Input image shape:', (1, 224, 224, 3))