-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues about running "Ours_training.py" and "Ours_Asys_testing.py" #3
Comments
I apologize for the errors, it should be my oversight when organizing the code. The correct DELG network structure definition should be found here DELG. |
These days I'm in an important internship and I don't have time to fix bugs in the code for a while, so if you run into some issues you could ask me again and I'll get back to you when I see it. :) |
Hello, @MCC-WH. I modified the SSP/networks/R101-DELG.py. (based on Token/networks/RetrievalNet.py)
After making these modifications, I reran the entire process from the beginning. Upon executing Ours_Asys_testing.py, I observed a significant drop in performance, as detailed below:
These results were obtained using timm=0.9.16. Additionally, I would like to know if there are any plans to distribute the modified code after your internship concludes. Looking forward to your reply. Thank you in advance! |
Hi, @MCC-WH.
I've been working with Ours_training.py and encountered a couple of issues that prevented the code from executing properly, necessitating some modifications on my end.
First Issue:
In the WarmupCos_Scheduler class, specifically within the def step(self): method, I encountered an issue where the lr_schedule list's index exceeded 1. To address this, I made the following modifications to the code:
Second Issue:
In the main function, it appeared that anchor_features was being unnecessarily retrieved in the loop:
Therefore, I adjusted the code as follows:
After making these adjustments, the training proceeded without further issues.
However, upon completing the training and moving on to Ours_Asys_testing.py, I encountered another problem when using the R101-DELG.pth file you shared on the google drive.
Issue:
When attempting to load the state dictionary with:
I found that there were keys present in the loaded state_dict that did not exist in db_net:
Unexpected in loaded state_dict: {'attention.att_conv1.weight', 'reduction.weight', 'reduction.bias'}
After removing these keys, I ran the code again but found that the mAP value was 4 (very low)
Having gone through these modifications to run the provided code, I am currently seeing unsatisfactory results.
I'm wondering if there's an updated version of the code available that addresses these issues.
Additionally, I would like to know if there might be a problem with the provided R101-DELG.pth file.
Looking forward to your reply. Thank you in advance!
The text was updated successfully, but these errors were encountered: