SimJeg / FC-DenseNet

Fully Convolutional DenseNets for semantic segmentation.
486 stars 145 forks source link

Can not use the dataset_loaders #18

Open Thatfreesky opened 7 years ago

Thatfreesky commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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

csjfwang commented 7 years ago

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 commented 7 years ago

Hi,

As you see in this issue:https://github.com/fvisin/dataset_loaders/issues/1 I also failed to use the dataset_loaders. So, as I just want to know the implementation of FC-DenseNet, I decided to directly read its source code.

On 09/21/2017 19:27, wlwsea wrote:

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!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

kuixu commented 7 years ago

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 commented 3 years ago

你好,正如你在这个问题中看到的: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 上查看,或将线程静音。

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