This file contains 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 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(): |
This file contains 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 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) |
This file contains 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 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) |
This file contains 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
('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)) |