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
How I can save the numpy value of output features as .csv format file layer by layer (stage by stage)?
I can access the weights of each layer by model.state_dict() but how I can print or save the input/output feature maps from selective layers?
The text was updated successfully, but these errors were encountered:
@PariaDarbani you can use the --visualize flag to output YOLOv5 feature maps:
--visualize
python detect.py --visualize
See #3920
Sorry, something went wrong.
Thank you. it saves the images of outputs. how I can save the numpy values or tensor of each image (numbers)
@PariaDarbani there's no method to save the output values directly, but you can customize the code to return values here:
yolov5/models/yolo.py
Lines 158 to 160 in aa18599
@PariaDarbani there's no method to save the output values directly, but you can customize the code to return values here: yolov5/models/yolo.py Lines 158 to 160 in aa18599 if visualize: feature_visualization(x, m.type, m.i, save_dir=visualize)
Thank you so much. solved. :)
No branches or pull requests
How I can save the numpy value of output features as .csv format file layer by layer (stage by stage)?
I can access the weights of each layer by model.state_dict() but how I can print or save the input/output feature maps from selective layers?
Additional context
The text was updated successfully, but these errors were encountered: