PyNetsPresso
PyNetsPresso copied to clipboard
[BUG] Log same comments in multiple lines
Describe the bug
When I try to benchmark model with Raspberry Pi 4B, Successfully got user information sentence always logged in multiple lines.
Have you searched existing issues? 🔎
- [X] I have searched and found no existing issues
Reproduction
Execute below python code
from netspresso.enums import DeviceName, SoftwareVersion
from netspresso import NetsPresso
import torch
netspresso = NetsPresso(email="???", password="???")
# 1. Declare benchmarker
benchmarker = netspresso.benchmarker()
# 2. Run benchmark
compression_ratio = 0.2
input_model_path = f'board_test/compression_{compression_ratio}/compression_{compression_ratio}.onnx'
benchmark_result = benchmarker.benchmark_model(
input_model_path=input_model_path,
target_device_name=DeviceName.RASPBERRY_PI_4B,
)
print(f"model inference latency: {benchmark_result['result']['latency']} ms")
print(f"model gpu memory footprint: {benchmark_result['result']['memory_footprint_gpu']} MB")
print(f"model cpu memory footprint: {benchmark_result['result']['memory_footprint_cpu']} MB")
Screenshot
No response
Logs
(np_trainer) (base) junho.shin@3090f:/ssd1/junho.shin/netspresso-trainer$ /ssd1/junho.shin/anaconda3/envs/np_trainer/bin/python /ssd1/junho.shin/netspresso-trainer/benchmark.py
2024-05-03 07:47:35.345 | INFO | netspresso.clients.config:<module>:11 - Read PROD config
2024-05-03 07:47:37.230 | INFO | netspresso.clients.auth.main:login:38 - Login successfully
2024-05-03 07:47:37.700 | INFO | netspresso.clients.auth.main:get_user_info:55 - Successfully got user information
2024-05-03 07:47:38.160 | INFO | netspresso.clients.auth.main:get_user_info:55 - Successfully got user information
2024-05-03 07:48:47.673 | INFO | netspresso.clients.auth.main:get_user_info:55 - Successfully got user information
2024-05-03 07:48:47.676 | INFO | netspresso.benchmarker.benchmarker:benchmark_model:171 - 25 credits have been consumed. Remaining Credit: 200
model inference latency: 1107.45 ms
model gpu memory footprint: None MB
model cpu memory footprint: 178.273 MB
System Info
Latest release (v1.6.0)