Code Monkey home page Code Monkey logo

charades-algorithms's People

Contributors

gsig avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

charades-algorithms's Issues

Error when running pytorch main.py

Hi gsig, thanks for sharing this project.
I just ran into this error when executing python main.py in the pytorch directory.

Traceback (most recent call last):
File "main.py", line 59, in
main()
File "main.py", line 49, in main
top1,top5 = trainer.train(train_loader, model, criterion, optimizer, epoch, opt)
File "/net/10.79.12.41/vision/u/xw1/charades-algorithms/pytorch/train.py", line 80, in train
for i, (input, target, meta) in enumerate(part(loader)):
File "/net/10.79.12.41/vision/u/xw1/charades-algorithms/pytorch/train.py", line 77, in part
return itertools.islice(x, int(len(x)*args.train_size))
File "/vision/u/xw1/anaconda3/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 417, in iter
return DataLoaderIter(self)
File "/vision/u/xw1/anaconda3/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 242, in init
self._put_indices()
File "/vision/u/xw1/anaconda3/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 290, in _put_indices
indices = next(self.sample_iter, None)
File "/vision/u/xw1/anaconda3/lib/python3.6/site-packages/torch/utils/data/sampler.py", line 119, in iter
for idx in self.sampler:
File "/vision/u/xw1/anaconda3/lib/python3.6/site-packages/torch/utils/data/sampler.py", line 50, in iter
return iter(torch.randperm(len(self.data_source)).long())

I see that this is caused by dataloader providing 0 training data.
My opts.py is set up as the followings:

--data : "{Path}/Charades_v1_features_flow"
--dataset : "charadesflow"
--train-file and --val-file are also set to the correct csv files

Is there anything I'm missing in opts.py or any thoughts on how I could solve this error? Thanks a lot!

Unusual Training Behaviour

I followed the instructions and proceeded towards retraining the rgbnet with default parameters, and ran it for 6 epochs with other parameters unchanged, I checked the epoch#.txt files and found out that the the network is predicting the same values for each video, the values change between epochs but stay the same for each video inside the file.

As a debug step i also predicted some images using RESNET inside and it was also giving same probabilities for any picture i feed in it, I tried every architecture

Ihave attached screenshot of one epoch file and .txt files for all epochs

screen shot 2017-07-21 at 1 14 21 pm
Uploading epoch1.txt…
Uploading epoch2.txt…
Uploading epoch3.txt…
Uploading epoch4.txt…
Uploading epoch5.txt…

A question about charades action location label

As I run the dataset, I find that some videos' annotations about end time of action is bigger than the total length of that video. For example,\

name action label total length
42K3H c006 0.00 3.60;c008 0.00 5.00;c112 0.00 3.90 3.5


This c008's end time is 5s > 3.5s.
Should I just turn this 5 into 3.5 ?

[question] FC7 data loader for tensorflow

Hi,
Is there any chance you have the equivalent of datasets/charadesrgb.py but in Tensorow? It would help me to process also the FC7 features instead of the RGB images.

Is the action score passed through softmax or not?

Hi Gunnar,

Thanks for sharing the amazing codebase! I'm wondering under the classification evaluation mode (or localization), should the action score for each video / frame be the score after passed through softmax or before? From the example submission file it seems to be before (cuz there're negative values), but from the validate_video() function seems the after-softmax scores are added to the submission file.

Thanks in advance!

Boxiao

Dataloader missing temporal dimension?

I'm using the Charades dataset class in charadesrgb.py to construct a Dataset object and then feeding it into a Dataloader. However, it seems like the mini-batches returned by my Dataloader are of dimension BxCxHxW (missing the temporal T dimension).

Is this the expected behavior? Or am I using this incorrectly?

[question]Loading Pre-trained flow model.

Hi,

I came across your data set and repo while researching about video analysis.
Thank you very much for sharing your rich data set and code.

I'm using pytorch implementation and able to load the rgb model without any problem.
But I', facing problems while loading flow model downloaded from https://www.dropbox.com/s/m1hkeiwjtndt26z/twostream_flow.pth?dl=1.

Specifically, I face error @ # replace last layer block of code in __init__.py file in the final else case.
System says "Dropout does not have field in_features..."

Could you please give me some direction on how to overcome this issue?
Thanks in advance!

Convergence issue when optnet is off

When optnet is turned off, the flownet does not seem to converge properly. Optnet does shrink the number of actual parameters, so some adjustment to the learning parameters might be needed. Writing this issue for reference.

Speed up flow loading and transforming

Average time to load a batch of 64 optical flow stacks takes 0.054 sec on average on a SSD for training, which is all good. On a HDD it is slow for training, but testing pretrained optical flow models seems fine. Maybe installing accimage fixes this.

Flow Conversion

How can i convert the 2 dimensional (u,v) obtained from dense optical flow algorithm to the id-0000.x and id-0000.y files, help appreciated.
How is the sequence numbered like the optical flow between images 1 and 2 is labelled 1.x and 1.y ?

A question about multiple labels for some frames

In the annotation file, more than one kind of action happens in one frame. For example, in sequence 46GP8, c092 and c147 are overlapping between 11.9s and 12.6s. So frames between this time period seem to have multiple labels.

46GP8,HR43,Kitchen,6,7,Yes,A person cooking on a stove while watching something out a window.,food;stove;window,A person cooks food on a stove before looking out of a window.,c092 11.90 21.20;c147 0.00 12.60,24.83

But the data loader you implemented seems to ignore it? Does it mean some frames will be appended to image_paths for multiple times?

CrossEntropyLoss will be confused as some frames have 2+ different labels?

for x in label:
for ii in range(0, n-1, GAP):
if x['start'] < ii/float(FPS) < x['end']:
impath = '{}/{}-{:06d}.jpg'.format(
iddir, vid, ii+1)
image_paths.append(impath)
targets.append(cls2int(x['class']))
ids.append(vid)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.