Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
yccyenchicheng committed Mar 15, 2023
1 parent cca3147 commit 7ed2ae9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions models/sdfusion_img2shape_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,15 +240,12 @@ def set_input(self, input=None, gen_order=None, max_sample=None):
self.img = input['img']
self.uc_img = torch.zeros_like(self.img).to(self.device)

self.gt_vox = input['gt_vox']

if max_sample is not None:
self.x = self.x[:max_sample]
self.img = self.img[:max_sample]
self.uc_img = self.uc_img[:max_sample]
self.gt_vox = self.gt_vox[:max_sample]

vars_list = ['x', 'img', 'gt_vox']
vars_list = ['x', 'img']

self.tocuda(var_names=vars_list)

Expand Down

0 comments on commit 7ed2ae9

Please sign in to comment.