|
| 1 | +########################################## |
| 2 | +######## VIRDO DATASET ######## |
| 3 | +######## CREATER : YOUNGSUN WI ######## |
| 4 | +######## CONTACT: yswi@umich.edu ######## |
| 5 | +########################################### |
| 6 | + |
| 7 | +1. DESCRIPTION: This dataset is written in 'dtype=torch.float64'. This dataset consists of total 144 deformation scenes from 6 different objects generated through MATLAB. It is divided into 'train' and 'test' dataset, where data['train'][OBJECT IDX = i][DEFORM IDX = j ] and data['test'][OBJECT IDX = i][DEFORM IDX = j ] indicates the same scene, but they are two different subsets of query points. |
| 8 | + |
| 9 | + |
| 10 | +2. STRUCTURE: The dataset structure is as follows: |
| 11 | +VIRDO_simul_dataset = { |
| 12 | +'train':{ |
| 13 | + <OBJECT IDX>: { |
| 14 | + 'nominal': { |
| 15 | + 'coords': tensor([1, M, 3]), |
| 16 | + 'normals': tensor([1, M, 3]), |
| 17 | + 'gt': tensor([1, M, 3]), |
| 18 | + 'scale': float |
| 19 | + }, |
| 20 | + <DEFORM IDX>: { |
| 21 | + 'coords': tensor([1, M, 3]), |
| 22 | + 'contact': tensor([1, M_c, 3]), |
| 23 | + 'normals': tensor([1, M, 3]), |
| 24 | + 'gt': tensor([1, M, 3]), |
| 25 | + 'scale': float, |
| 26 | + 'reaction': tensor([1,3] |
| 27 | + }, |
| 28 | + }, |
| 29 | + |
| 30 | + }, |
| 31 | +'test':{ |
| 32 | + <OBJECT IDX>: { |
| 33 | + 'nominal': { |
| 34 | + 'coords': tensor([1, M, 3]), |
| 35 | + 'normals': tensor([1, M, 3]), |
| 36 | + 'gt': tensor([1, M, 3]), |
| 37 | + 'scale': float |
| 38 | + }, |
| 39 | + <DEFORM IDX>: { |
| 40 | + 'coords': tensor([1, M, 3]), |
| 41 | + 'contact': tensor([1, M_c, 3]), |
| 42 | + 'normals': tensor([1, M, 3]), |
| 43 | + 'gt': tensor([1, M, 3]), |
| 44 | + 'scale': float, |
| 45 | + 'reaction': tensor([1,3] |
| 46 | + }, |
| 47 | + }, |
| 48 | + |
| 49 | + }, |
| 50 | +} |
| 51 | + |
| 52 | + * <OBJECT IDX> = Interger from 0 ~ 5. Each number indicates different object. |
| 53 | + * <DEFORM IDX> = Unique integer for each deformation. |
| 54 | + * M = total points (on-surface + off-surface) |
| 55 | + * M_c = a subset of on-surface points that are in contact |
| 56 | + * [:,i,:] elements of 'coords', 'normals', and 'gt' refers ith query point of a scene. To get on-surface points of data_def = data['train'][<OBJECT IDX>][<DEFORM IDX>], you should do data_def['coords'][:,torch.where(data_def['gt'] == 0)[1],:]. |
| 57 | + |
0 commit comments