Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not use the dataset_loaders #18

Open
Thatfreesky opened this issue Apr 30, 2017 · 6 comments
Open

Can not use the dataset_loaders #18

Thatfreesky opened this issue Apr 30, 2017 · 6 comments

Comments

@Thatfreesky
Copy link

I clone dataset_loaders repository in my '/home/mountain/GitHub/' dictionary. Then, I use below commands to install the dataset_loaders:

(biomediclasagne) mountain@Mountain:~$ cd GitHub/
(biomediclasagne) mountain@Mountain:~/GitHub$ ls
dataset_loaders
DSB3Tutorial
FC-DenseNet
ipywidgets
Medical-Image-Analysis-IPython-Tutorials
Medical-Image-Analysis-IPython-Tutorials-master.zip
models
SimpleITK-Notebooks
SimpleITKTutorialMICCAI2015
TensorFlow-Examples
tensorflow_notes
(biomediclasagne) mountain@Mountain:~/GitHub$ pip install --user -e dataset_loaders

I have not got any error, but when I try to import some something from dataset_loaders, I got some error:

In [1]: from dataset_loaders.images.camvid import CamvidDataset
fatal: Not a git repository (or any of the parent directories): .git
---------------------------------------------------------------------------
CalledProcessError                        Traceback (most recent call last)
<ipython-input-1-d1deaab6f518> in <module>()
----> 1 from dataset_loaders.images.camvid import CamvidDataset

/home/mountain/GitHub/dataset_loaders/dataset_loaders/__init__.pyc in <module>()
     15 
     16 __version__ = check_output('git rev-parse HEAD',
---> 17                            shell=True).strip().decode('ascii')

/home/mountain/anaconda3/envs/biomediclasagne/lib/python2.7/subprocess.pyc in check_output(*popenargs, **kwargs)
    217         if cmd is None:
    218             cmd = popenargs[0]
--> 219         raise CalledProcessError(retcode, cmd, output=output)
    220     return output
    221 

CalledProcessError: Command 'git rev-parse HEAD' returned non-zero exit status 128
@Thatfreesky
Copy link
Author

Hi,
For I can not use the dataset_loaders, I decide to read the related source code directly. In the train.py file, I find such code:

train_iter, val_iter, test_iter = load_data(cf.dataset,
                                                train_crop_size=cf.train_crop_size,
                                                batch_size=cf.batch_size,
                                                horizontal_flip=True,
                                                )
n_classes = train_iter.get_n_classes()

Next I go to the data_loader.py, I find the train_iter, val_iter, test_iter all are instances of the CamvidDaraset Class. Then I search this class in the 'dataset_loaders/images/camvid.py' file. But I can not find the get_n_classes() method. In fact in the supper class of CamvidDataset, i.e. ThreadedDataset, I also have not find this method.
screenshot from 2017-04-30 17-23-47

@ChidanandKumarKS
Copy link

Any update since get_n_classes(), get_void_labels are not found. Kindly suggest

@csjfwang
Copy link

Hi @Thatfreesky ,
I want to train FC-DenseNet, but i don't know how to use dataset_loaders in https://github.com/fvisin/dataset_loaders
So could you please tell me how to use that? Or are there any other solutions for it ?

Thanks a ton!

@Thatfreesky
Copy link
Author

Thatfreesky commented Sep 21, 2017 via email

@kuixu
Copy link

kuixu commented Sep 27, 2017

Hi, @Thatfreesky
I have trained the code successfully by using fvisin/dataset_loaders, and I put my modified code at #23. You can try it. Hopes that could help you.

@Bobwang-tech
Copy link

你好,正如你在这个问题中看到的:fvisin/dataset_loaders#1 我也没有使用dataset_loaders。所以,因为我只是想知道FC-DenseNet的实现,所以我决定直接阅读它的源代码。在 09/21/2017 19:27,wlwsea 写道:嗨@Thatfreesky,我想训练 FC-DenseNet,但我不知道如何在https://github.com/fvisin/dataset_loaders 中使用 dataset_loaders 所以你能请告诉我如何使用它?或者有其他解决方案吗?万分感谢!— 您收到此消息是因为有人提到了您。直接回复此邮件,在 GitHub 上查看,或将线程静音。

数据好像不能够下载,需要作者提供数据集,否则无法复现。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants