triopood commited on
Commit
1f963ce
·
verified ·
1 Parent(s): 8eddbe4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -35,16 +35,16 @@ dataset = project.version(1).download("folder")
35
  subprocess.run(['wget', '--no-check-certificate', 'https://docs.google.com/uc?export=download&id=12reT7rxiRqTERYqeKYx7WGz5deMXjnEo', '-O', 'filetxt'])
36
  subprocess.run(['unzip', 'filetxt'])
37
 
38
- def seed_everything(seed_value):
39
- np.random.seed(seed_value)
40
- torch.manual_seed(seed_value)
41
- torch.cuda.manual_seed_all(seed_value)
42
- torch.backends.cudnn.deterministic = True
43
- torch.backends.cudnn.benchmark = False
44
 
45
- seed_everything(42)
46
 
47
- device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
48
 
49
  def download_and_unzip(url, save_path):
50
  print(f"Downloading and extracting assets....", end="")
 
35
  subprocess.run(['wget', '--no-check-certificate', 'https://docs.google.com/uc?export=download&id=12reT7rxiRqTERYqeKYx7WGz5deMXjnEo', '-O', 'filetxt'])
36
  subprocess.run(['unzip', 'filetxt'])
37
 
38
+ # def seed_everything(seed_value):
39
+ # np.random.seed(seed_value)
40
+ # torch.manual_seed(seed_value)
41
+ # torch.cuda.manual_seed_all(seed_value)
42
+ # torch.backends.cudnn.deterministic = True
43
+ # torch.backends.cudnn.benchmark = False
44
 
45
+ # seed_everything(42)
46
 
47
+ # device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
48
 
49
  def download_and_unzip(url, save_path):
50
  print(f"Downloading and extracting assets....", end="")