Code Monkey home page Code Monkey logo

tclr's People

Contributors

daveishan 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

Watchers

 avatar

tclr's Issues

Some questions from a beginner

RuntimeError: stack expects a non-empty TensorList

After configuring the code when I am running it using the command:

python3 complete_retrieval.py --saved_model="../models/model_best_e247_loss_9.7173.pth"

I am getting the following Error

Clip ../data/UCF-101/ShavingBeard/v_ShavingBeard_g05_c06.avi Failed
Traceback (most recent call last):
  File "complete_retrieval.py", line 253, in <module>
    train_classifier(str(run_id), arch, str(saved_model), modes)
  File "complete_retrieval.py", line 132, in train_classifier
    pred_dict, label_dict = val_epoch(len(modes), run_id, epoch, modes[val_iter], skip[val_iter],
  File "complete_retrieval.py", line 20, in val_epoch
    for i, (inputs, label, vid_path, _) in enumerate(data_loader):
  File "/home/multi-sy-15/PycharmProjects/TCLR/venv_tclr/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 521, in __next__
    data = self._next_data()
  File "/home/multi-sy-15/PycharmProjects/TCLR/venv_tclr/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1203, in _next_data
    return self._process_data(data)
  File "/home/multi-sy-15/PycharmProjects/TCLR/venv_tclr/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1229, in _process_data
    data.reraise()
  File "/home/multi-sy-15/PycharmProjects/TCLR/venv_tclr/lib/python3.8/site-packages/torch/_utils.py", line 425, in reraise
    raise self.exc_type(msg)
RuntimeError: Caught RuntimeError in DataLoader worker process 0.
Original Traceback (most recent call last):
  File "/home/multi-sy-15/PycharmProjects/TCLR/venv_tclr/lib/python3.8/site-packages/torch/utils/data/_utils/worker.py", line 287, in _worker_loop
    data = fetcher.fetch(index)
  File "/home/multi-sy-15/PycharmProjects/TCLR/venv_tclr/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 47, in fetch
    return self.collate_fn(data)
  File "/home/multi-sy-15/PycharmProjects/TCLR/nn_retrieval/dl_ret.py", line 283, in collate_fn2
    f_clip = torch.stack(f_clip, dim=0)
RuntimeError: stack expects a non-empty TensorList

When will the code be released

Dear @DAVEISHAN
Your research work is very meaningful and I am very interested.
But I sincerely want to know when the code can be released. I'm very eager to learn useful knowledge.
Best wishes to you!

Embedding Size

Hello Sir

Thank you very much for sharing your code.
In your NN Retrieval code, you stated that the train features has size of 9537 x 4096
and the val feature has size of 3792 x 4096 for the UCF-101.

I am wondering if the r3d encoder outputs 512 x 4 which is equal to 2048 after flattening ,
how you managed to get an embedding of size 4096 ?

I tried the code and it outputs an embedding of size 2048, did I miss something here?
What is the size of the embedding for the NN-Retrieval experiments reported in the paper?

In addition, I used the provided UCF pre-trained model to run the retrieval experiment on UCF and
got lower accuracies than the paper:

torch.Size([9537, 2048]) - train features
torch.Size([3783, 2048]) - val feature

Top-1 correct is 50.44%
Top-5 correct is 69.89%
Top-10 correct is 77.27%
Top-20 correct is 84.46%
50.44, 69.89, 77.27, 84.46

Best Regards,
Hussein

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.