chan8972 / spike-flownet Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
@chan8972
would like to know what is the reason for choosing sp_threshold=0.875 in the line. Kindly help
Spike-FlowNet/main_spike_flow_dt1.py
Line 249 in 1061c21
hello, Thanks for your great job !
while I met this problem and wonder what and where "spatial_correlation_sampler import spatial_correlation_sample" is.
1.ImportWarning: failed to load custom correlation modulewhich isneeded for FlowNetC"which is needed for FlowNetC", ImportWarning)>
in addtion, other two problem arise
2.ImportWarning: failed to load custom correlation modulewhich isneeded for FlowNetC"which is needed for FlowNetC", ImportWarning)>
3.site-packages/torchvision/transforms/transforms.py:853: UserWarning: Argument intepolation should be of type InterpolationMode instead of int. Please, use InterpolationMode enum."Argument interpolation should be of type InterpolationMode instead of int."
Hello, thank you for sharing your code and great work.
I am trying to confirm the AEE results of the pretrained checkpoint_dt1.pth.tar on the outdoor1.
Should I change any parameters for outdoor1? It seems outdoor is different from indoor.
Thank you for your kind help in advance.
Could you provide the code for generating GT? Thank you~
Hi~, When I was trying to run the main_spike_flow_dt1.py and main_spike_flow_dt4.py
There is a problem.
Traceback (most recent call last):
File "main_spike_flow_dt1.py", line 550, in <module>
main()
File "main_spike_flow_dt1.py", line 526, in main
train_loss = train(train_loader, model, optimizer, epoch, train_writer)
File "main_spike_flow_dt1.py", line 253, in train
for ww, data in enumerate(train_loader, 0):
File "/home/ma-user/anaconda3/envs/Pytorch-1.0.0/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 582, in __next__
return self._process_next_batch(batch)
File "/home/ma-user/anaconda3/envs/Pytorch-1.0.0/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 608, in _process_next_batch
raise batch.exc_type(batch.exc_msg)
IndexError: Traceback (most recent call last):
File "/home/ma-user/anaconda3/envs/Pytorch-1.0.0/lib/python3.6/site-packages/torch/utils/data/_utils/worker.py", line 99, in _worker_loop
samples = collate_fn([dataset[i] for i in batch_indices])
File "/home/ma-user/anaconda3/envs/Pytorch-1.0.0/lib/python3.6/site-packages/torch/utils/data/_utils/worker.py", line 99, in <listcomp>
samples = collate_fn([dataset[i] for i in batch_indices])
File "main_spike_flow_dt1.py", line 148, in __getitem__
aaa[:, :, p] = self.transform(aa[:, :, p])
File "/home/ma-user/anaconda3/envs/Pytorch-1.0.0/lib/python3.6/site-packages/torchvision/transforms/transforms.py", line 49, in __call__
img = t(img)
File "/home/ma-user/anaconda3/envs/Pytorch-1.0.0/lib/python3.6/site-packages/torchvision/transforms/transforms.py", line 110, in __call__
return F.to_pil_image(pic, self.mode)
File "/home/ma-user/anaconda3/envs/Pytorch-1.0.0/lib/python3.6/site-packages/torchvision/transforms/functional.py", line 115, in to_pil_image
if npimg.shape[2] == 1:
IndexError: tuple index out of range
How should I fix it? Thanks :)
Hi, good job on SNN based optical-flow estimation. But the google drive is not easy for researchers in China to use for the download of the dataset. So, would you please upload the dataset into another cloud drive, like MEGA? Thank you.
Hi,
Thanks for sharing your code!
I'm trying to reproduce the test results on the outdoor day 1 dataset you're listing in your paper. However, the code needs approx. 5 seconds to test just one sample (this adds up to 15 hours for the whole outdoor day 1 dataset) I located the issue to be in the estimate_corresponding_gt_flow
function, likely because the whole ground truth is moved to an array each time, which consumes a lot of CPU and is generally slow.
Did you experience a similar issue and could you somehow avoid it?
Thanks for your help!
Why are the results of my visualization here all black
Hello, thank you for sharing your code and great work.
I am trying to view the results of the pretrained checkpoint_dt1.pth.tar and checkpoint_dt4.pth.tar model on the indoor_flying1
But it seems that the Spike Image and Predicted Flow Output visualizations are very sparse, even with the 4 frame model (results for checkpoint_dt4.pth.tar on indoor_flying1 shown below).
I am running with the existing parameters in the code:
batch_size_v = 4, sp_threshold = 0.5
Should any of the parameters be changed to get a denser spike input and thus denser predicted flow output?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.