models.py: Slice, Segment and Block
blockwisesopnet: control code for block wise sopnet models