Giter Club home page Giter Club logo

c-tran's People

Contributors

jacklanchantin 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

c-tran's Issues

The experiments on CUB

I am very interested in your work. Can you provide instructions for the operation of the CUB dataset?
Thank you very much!

Optimal no. of epochs to train a model and availability of a trained model

Hi,
Thank you for the code and the great work. I have two questions regarding your work. First how many number of epochs your model needs to train successfully? I am running your model on my dataset however it is not learning till 10 epochs therefore I want to know how many epochs your model needs. Secondly do you also have trained models as transformers need a lot of resources for training. Therefore if you can provide trained models that would help me a lot. Thank you for your time.

About applications on custom datasets

Thank you very much for your work, but I am confused about some code of your dataset, especially the coco type. Your code is not regular COCO dataset, and you did not provide relevant code to convert to your format, which made it very difficult for me to migrate to my own dataset.

A question of the args "--grad_ac_step"

Dear author,

Thanks very much for your interesting work!
I wonder why the args "--grad_ac_step" is set as 2 for VOC2007?

From your code, I see that if you set "--grad_ac_step" as 2, a minibatch images (16 images) will not be used for optimization.
Can you help me solve this issue?

Thanks very much!

'CTranModel' object has no attribute 'module'. Did you mean: 'modules'?

Hi,
I want to run the model by freezing the backbone I am getting the following error in main.py line 56:
'CTranModel' object has no attribute 'module'. Did you mean: 'modules'?

When I change module to modules then I get following error on same line 56 in main.py:
AttributeError: 'function' object has no attribute 'backbone'

Could you please help me regarding this?

coco datasets

Can you provide the content in "train.data" and "val_test.data" dirs? I have the coco images and annotations already according to the original coco website.

Running

Excuse me,
I am very interested in your work. But the End2EndModel method is not found in this project. And MAP didn't live up to expectations.
I'm running on Windoes
Thank you very much

About applications on custom datasets

Thank you very much for your work, but I am confused about some code of your dataset, especially the coco type. Your code is not regular COCO dataset, and you did not provide relevant code to convert to your format, which made it very difficult for me to migrate to my own dataset.

Weird same prediction with large dataset

Thank you for your wonderful project!

I have been doing research with your C-Tran project, and conducting training with several autonomous driving dataset, such as nuScenes and METEOR.

It seems that when the number of images is larger than 100,000, all of the images tend to have almost same predictions. For example, [car: 0.96, pedestrian: 0.01, truck: 0.48] for all of the images, even though labels of different images are different. However, when I shrink the number of images to 3000 or less, different images will have different predictions of labels.

May I ask why this problem happens? Is it because I failed to apply your network correctly, or because the network with Transformers struggled to output satisfying predictions with large data?

Thank you for your reading, and I look forward to your reply.

Hoping for your code!

Thank you for your exciting work, I still have some detail implementation problems and would like to try some more ideas.
So hoping for your code! (●'◡'●)

How to Inference

Hi, I want to use C-Tran code. How to inference this code?
Could you explain how to inference this code after training?

Implementation for my Dataset

I tried running with VOC2007 dataset and worked but while I am trying to implement it with my dataset I am not able to run it due to missing annotations files, Is it mandatory to generate them or there is any way to ignore them and run.

My Dataset has only images and a CSV file with an image id and label column.

use voc dataset error

File "D:\Graduation project\归档\C-Tran-main\run_epoch.py", line 30, in run_epoch
    for batch in tqdm(data,mininterval=0.5,desc=desc,leave=True,ncols=50):
RuntimeError:
        An attempt has been made to start a new process before the
            if __name__ == '__main__':
                freeze_support()
                ...

        The "freeze_support()" line can be omitted if the program
        is not going to be frozen to produce an executable.

The above error occurs when I use this code to execute this program

Custom dataset

Hi, I want to train on my custom dataset, but I cannot find any information on how one can do it. Can you provide a README or any form of documentation where I can look it up? Or can you help me understand and implement it myself?

Question about the diag_mask in CTran.py file

output = self.output_linear(label_embeddings)
diag_mask = torch.eye(output.size(1)).unsqueeze(0).repeat(output.size(0),1,1).cuda()
output = (output*diag_mask).sum(-1)

I'm wondering what this diag_mask is playing in output value? Why should the output multiple a diagonal matrix? Your kind reply is very appreciated!

project license

I am interested in your project!
I want to reuse the code, would you please add an open source license?

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.