Guest User

Untitled

a guest
Jan 22nd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. from data.isprs import IsprsDataset
  2. dataset = IsprsDataset()
  3. dataset.label_to_one_hot_batch(label_batch) # where label_batch is defined elsewhere
  4.  
  5. /home/user/jimcharles/rastervision/semseg/data/isprs.pyc in augment_channels(self, batch_x)
  6. 123
  7. 124 def augment_channels(self, batch_x):
  8. --> 125 red = batch_x[:, :, :, [self.red_ind]]
  9. 126 ir = batch_x[:, :, :, [self.ir_ind]]
  10. 127 ndvi = compute_ndvi(red, ir)
  11.  
  12. AttributeError: IsprsDataset instance has no attribute 'red_ind'
Add Comment
Please, Sign In to add comment