-
Notifications
You must be signed in to change notification settings - Fork 5
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
Training issues #24
Comments
from ptflops import get_model_complexity_info
from thop import profile
for idx, data_batch in enumerate(data_loader):
macs, params = get_model_complexity_info(model, (1, 3, 800, 1333), as_strings=True,
print_per_layer_stat=False, verbose=True)
print('{:<30} {:<8}'.format('Computational complexity: ', macs))
print('{:<30} {:<8}'.format('Number of parameters: ', params))
# flops, params = profile(model.cuda(), inputs=data_batch['img'][0].cuda())
# print('FLOPs = ' + str(flops / 1000 ** 3) + 'G')
# print('Params = ' + str(params / 1000 ** 2) + 'M') you can try 'profile' and 'get_model_complexity_info' to calculate FLOPS and Params. |
May I ask if you would like to directly place it in test. py and select the base training weight of 20000pth or a fine tuned weight such as the 1-shot weight of 800.pth for testing and printing? Thank you again for your help despite your busy schedule, and I wish you a happy new year!! |
Yes, you can either put it in test.py or manually load an image. Happy new year too! |
|
May I ask if you have added forward_dummy to fpd_detector.py to handle it? Could you share the complete code process? I'm really sorry to bother you all the time. Thank you for taking the time to help me! |
I'm sorry to disturb your rest. Could you please share the calculation code for FLOPS, Param, and FPS used for meta-learning method FPD? I haven't completed it yet, and I hope you can help me despite your busy schedule. Thank you very much!
The text was updated successfully, but these errors were encountered: