MSKCC-Computational-Pathology / MIL-nature-medicine-2019

342 stars 104 forks source link

the questions about the code #6

Open Shuwrood-SSW opened 5 years ago

Shuwrood-SSW commented 5 years ago

code: { parser.add_argument('--train_lib', type=str, default='', help='path to train MIL library binary') }

code: { class MILdataset(data.Dataset): def init(self, libraryfile='', transform=None): lib = torch.load(libraryfile) slides = [] for i,name in enumerate(lib['slides']): sys.stdout.write('Opening SVS headers: [{}/{}]\r'.format(i+1, len(lib['slides']))) sys.stdout.flush() slides.append(openslide.OpenSlide(name)) print('') } question: the parameter of "train_lib" is tranfered to libraryfile, it is confused about the meaning of "train_lib" . By my understanding, it should be the path of data , but it looks like the path of trained model, if it is ,where is the model ?

Tato14 commented 4 years ago

Hi! train_lib is the path to the dictionary with images paths, grids, etc.