miladmozafari / SpykeTorch

High-speed simulator of convolutional spiking neural networks with at most one spike per neuron.
GNU General Public License v3.0
381 stars 100 forks source link

about datasets #1

Closed edwardzcl closed 3 years ago

edwardzcl commented 5 years ago

hi~ I have used this toolbox, but i do not know how to prepare the proper datasets file format in my folder, so could you provide me with you reimplement datasets link, or tell me how can i prepare the datasets? Thank you!

miladmozafari commented 5 years ago

Hi, SpykeTorch supports all kinds of datasets provided by PyTorch. It depends on your dataset and your task. For example, if it is MNIST, then you can use Torchvision’s MNIST dataset or if it is a set of folders of images, again you can use its ImageFolder class. You can also implement your own customized dataset class inherited from dataset base class (or even other dataset classes). Please take a look at this link: https://pytorch.org/docs/stable/torchvision/datasets.html#imagefolder

edwardzcl commented 5 years ago

Thank you,i see. I can use the ImageFolder class for my own datasets, such as .jpg and .png...

tehreemnaqvi commented 4 years ago

Hi, I already have Pytorch but when importing SpykeTorch library then got this error. Please tell me how can I solve this issue? Thanks.


ModuleNotFoundError Traceback (most recent call last)

in 1 import torch.nn as nn ----> 2 import SpykeTorch.utils as utils ModuleNotFoundError: No module named 'SpykeTorch'
miladmozafari commented 4 years ago

Hi, The problem you are facing in SpykeTorch. Have you downloaded the package? After downloading, you should put SpykeTorch folder in the directory of your script file. I hope it solves the problem.

tehreemnaqvi commented 4 years ago

Thank you very much for your response. Yeah I solved the problem.

On Fri, 24 Apr 2020 at 22:29, miladmozafari notifications@github.com wrote:

Hi, The problem you are facing in SpykeTorch. Have you downloaded the package? After downloading, you should put SpykeTorch folder in the directory of your script file. I hope it solves the problem.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/miladmozafari/SpykeTorch/issues/1#issuecomment-619010298, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJFFXM26KH64KPPLHHSVSZ3ROGH25ANCNFSM4HEAFK7Q .