We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
在训练的时候glops计算量不显示是怎么回事
The text was updated successfully, but these errors were encountered:
用test.py文件中的thop库可以测试参数量和GFLOPs。解开注释就可以。 # import thop # input_image_size = opt.img_size # input_image = torch.randn(1, 3, input_image_size, input_image_size).to(device) # flops, params = thop.profile(model, inputs=(input_image,input_image,input_mode), verbose=False) # print('Params: %.4fM'%(params/1e6)) # print('FLOPs: %.2fG'%(flops/1e9))
Sorry, something went wrong.
感谢
用 test.py 文件中的thop库可以测试参数量和GFLOPs。解开注释就可以。 # import thop # input_image_size = opt.img_size # input_image = torch.randn(1, 3, input_image_size, input_image_size).to(device) # flops, params = thop.profile(model, inputs=(input_image,input_image,input_mode), verbose=False) # print('Params: %.4fM'%(params/1e6)) # print('FLOPs: %.2fG'%(flops/1e9))
为什么前后输出的参数不一样呢?
No branches or pull requests
在训练的时候glops计算量不显示是怎么回事
The text was updated successfully, but these errors were encountered: