Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 948a3b3

Browse files
Jie Zhouchsasank
authored andcommitted
landmarks_frame -> self.landmarks (#107)
change `landmarks_frame` in the definition of class `FaceLandmarksDataset` to `self.landmarks_frame`
1 parent 1b92011 commit 948a3b3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

beginner_source/data_loading_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def __len__(self):
138138
def __getitem__(self, idx):
139139
img_name = os.path.join(self.root_dir, self.landmarks_frame.ix[idx, 0])
140140
image = io.imread(img_name)
141-
landmarks = landmarks_frame.ix[idx, 1:].as_matrix().astype('float')
141+
landmarks = self.landmarks_frame.ix[idx, 1:].as_matrix().astype('float')
142142
landmarks = landmarks.reshape(-1, 2)
143143
sample = {'image': image, 'landmarks': landmarks}
144144

0 commit comments

Comments
 (0)