Skip to content

Commit

Permalink
Points minor bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
OniDaito committed Oct 21, 2021
1 parent c3b49e8 commit b1e9fca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions data/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/_/ \___/_/ /___/\___/___/___/_/|_/\___/___/ # noqa
Author : Benjamin Blundell - [email protected]
dataload.py -The Dataloader is responsible for generating data
loader.py -The Dataloader is responsible for generating data
for the DataSet and DataBuffer classes. It either generates on demand
or reads images from the disk. It isn't used directly, rather it works
as follows:
Expand Down Expand Up @@ -158,8 +158,8 @@ def __init__(
self.available = array.array("L")

# Our ground truth object points
self.gt_points = array.array("d")

self.gt_points = Points
# How far do we translate?
self.translate = translate
self.max_trans = max_trans
Expand Down Expand Up @@ -194,9 +194,9 @@ def __init__(
from util.plyobj import load_obj, load_ply

if "obj" in objpath:
self.gt_points = load_obj(objpath=objpath)
self.gt_points = load_obj(objpath=objpath).to_array()
elif "ply" in objpath:
self.gt_points = load_ply(objpath)
self.gt_points = load_ply(objpath).to_array()

self._create_basic()

Expand Down
1 change: 1 addition & 0 deletions util/math.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"""

from array import array
import math
import torch
import random
Expand Down

0 comments on commit b1e9fca

Please sign in to comment.