daidedou commited on
Commit
f5df033
·
1 Parent(s): a69ca00

Changed some code haaa

Browse files
Files changed (1) hide show
  1. notebook_helpers.py +1 -5
notebook_helpers.py CHANGED
@@ -5,9 +5,6 @@ from utils.utils_func import convert_dict
5
  from utils.surfaces import Surface
6
  import numpy as np
7
 
8
-
9
- device = "cuda:0"
10
-
11
  def load_data(file, cache_path, name, num_evecs=128, make_cache=False, factor=None):
12
  if factor is None:
13
  verts_shape, faces, vnormals, area_shape, center_shape = load_mesh(file, return_vnormals=True)
@@ -23,9 +20,8 @@ def load_data(file, cache_path, name, num_evecs=128, make_cache=False, factor=No
23
  data_dict['name'] = name
24
  data_dict['normals'] = vnormals
25
  data_dict['vertices'] = verts_shape
26
- data_dict_torch = convert_dict(data_dict, device)
27
  #batchify_dict(data_dict_torch)
28
- return data_dict_torch, area_shape
29
 
30
  def get_map_info(file_1, file_2, dict_1, dict_2, dataset):
31
  shape_dict, target_dict = dict_1, dict_2
 
5
  from utils.surfaces import Surface
6
  import numpy as np
7
 
 
 
 
8
  def load_data(file, cache_path, name, num_evecs=128, make_cache=False, factor=None):
9
  if factor is None:
10
  verts_shape, faces, vnormals, area_shape, center_shape = load_mesh(file, return_vnormals=True)
 
20
  data_dict['name'] = name
21
  data_dict['normals'] = vnormals
22
  data_dict['vertices'] = verts_shape
 
23
  #batchify_dict(data_dict_torch)
24
+ return data_dict, area_shape
25
 
26
  def get_map_info(file_1, file_2, dict_1, dict_2, dataset):
27
  shape_dict, target_dict = dict_1, dict_2