Mar2Ding commited on
Commit
e329eed
·
verified ·
1 Parent(s): d6ee06c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -166,13 +166,13 @@ def get_point(point_type, tracking_points, trackings_input_label, input_first_fr
166
 
167
  return tracking_points, trackings_input_label, selected_point_map
168
 
169
- # use bfloat16 for the entire notebook
170
- torch.autocast(device_type="cuda", dtype=torch.bfloat16).__enter__()
171
 
172
- if torch.cuda.get_device_properties(0).major >= 8:
173
- # turn on tfloat32 for Ampere GPUs (https://pytorch.org/docs/stable/notes/cuda.html#tensorfloat-32-tf32-on-ampere-devices)
174
- torch.backends.cuda.matmul.allow_tf32 = True
175
- torch.backends.cudnn.allow_tf32 = True
176
 
177
  def show_mask(mask, ax, obj_id=None, random_color=False):
178
  if random_color:
 
166
 
167
  return tracking_points, trackings_input_label, selected_point_map
168
 
169
+ # # use bfloat16 for the entire notebook
170
+ # torch.autocast(device_type="cuda", dtype=torch.bfloat16).__enter__()
171
 
172
+ # if torch.cuda.get_device_properties(0).major >= 8:
173
+ # # turn on tfloat32 for Ampere GPUs (https://pytorch.org/docs/stable/notes/cuda.html#tensorfloat-32-tf32-on-ampere-devices)
174
+ # torch.backends.cuda.matmul.allow_tf32 = True
175
+ # torch.backends.cudnn.allow_tf32 = True
176
 
177
  def show_mask(mask, ax, obj_id=None, random_color=False):
178
  if random_color: