Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Issue loading dataset #7

Description

@iandewancker

Hey there I am playing around with the "cifar10_msra.py" example and ran into a snag running the Imageloading

In [15]: train = ImageLoader(set_name='train', shuffle=True, do_transforms=True, **imgset_options)
libdc1394 error: Failed to initialize libdc1394
---------------------------------------------------------------------------
ArgumentError                             Traceback (most recent call last)
<ipython-input-15-c033fd957d22> in <module>()
----> 1 train = ImageLoader(set_name='train', shuffle=True, do_transforms=True, **imgset_options)

/usr/local/lib/python2.7/dist-packages/neon/data/imageloader.pyc in __init__(self, repo_dir, inner_size, scale_range, do_transforms, rgb, shuffle, set_name, subset_pct, nlabels, macro, contrast_range, aspect_ratio)
    105                                           target_size=1, reshuffle=shuffle,
    106                                           nclasses=self.nclass,
--> 107                                           subset_percent=subset_pct)
    108
    109     def configure(self, repo_dir, set_name, subset_pct):

/usr/local/lib/python2.7/dist-packages/neon/data/dataloader.pyc in __init__(self, set_name, repo_dir, media_params, target_size, index_file, shuffle, reshuffle, datum_dtype, target_dtype, onehot, nclasses, subset_percent, ingest_params)
     85         self.ingest_params = ingest_params
     86         self.load_library()
---> 87         self.alloc()
     88         self.start()
     89         atexit.register(self.stop)

/usr/local/lib/python2.7/dist-packages/neon/data/dataloader.pyc in alloc(self)
    110             return BufferPair(ct_cast(buffers, 0), ct_cast(buffers, 1))
    111
--> 112         self.data = alloc_bufs(self.datum_size, self.datum_dtype)
    113         self.targets = alloc_bufs(self.target_size, self.target_dtype)
    114         self.device_params = DeviceParams(self.be.device_type,

/usr/local/lib/python2.7/dist-packages/neon/data/dataloader.pyc in alloc_bufs(dim0, dtype)
    102
    103         def alloc_bufs(dim0, dtype):
--> 104             return [self.be.iobuf(dim0=dim0, dtype=dtype) for _ in range(2)]
    105
    106         def ct_cast(buffers, idx):

/usr/local/lib/python2.7/dist-packages/neon/backends/backend.pyc in iobuf(self, dim0, x, dtype, name, persist_values, shared, parallelism)
    549
    550         if persist_values and shared is None:
--> 551             out_tsr[:] = 0
    552
    553         return out_tsr

/usr/local/lib/python2.7/dist-packages/neon/backends/nervanagpu.pyc in __setitem__(self, index, value)
    178     def __setitem__(self, index, value):
    179
--> 180         self.__getitem__(index)._assign(value)
    181
    182     def __getitem__(self, index):

/usr/local/lib/python2.7/dist-packages/neon/backends/nervanagpu.pyc in _assign(self, value)
    339                 if self.dtype.itemsize == 1:
    340                     drv.memset_d8_async(
--> 341                         self.gpudata, unpack_from('B', value)[0], self.size, stream)
    342                 elif self.dtype.itemsize == 2:
    343                     drv.memset_d16_async(

ArgumentError: Python argument types in
    pycuda._driver.memset_d8_async(NoneType, int, int, NoneType)
did not match C++ signature:
    memset_d8_async(unsigned long long dest, unsigned char data, unsigned int size, pycudaboost::python::api::object stream=None)

Any ideas what I could be doing wrong here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions