Skip to content
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

AttributeError: 'NoneType' object has no attribute 'copy' #2

Open
lyxlplhy opened this issue Apr 11, 2023 · 0 comments
Open

AttributeError: 'NoneType' object has no attribute 'copy' #2

lyxlplhy opened this issue Apr 11, 2023 · 0 comments

Comments

@lyxlplhy
Copy link

C:\Users\16550.conda\envs\yolo1\python.exe E:\yolo\Yolov7_Segmentation_Tensorrt-main\segment_image.py
Loading E:\yolo\Yolov7_Segmentation_Tensorrt-main\yolov7_fp16.engine for TensorRT inference...
[04/11/2023-20:33:54] [TRT] [I] [MemUsageChange] Init CUDA: CPU +350, GPU +0, now: CPU 10896, GPU 912 (MiB)
Deserializing engine...
[04/11/2023-20:33:54] [TRT] [I] Loaded engine size: 89 MiB
[04/11/2023-20:33:54] [TRT] [W] Using an engine plan file across different models of devices is not recommended and is likely to affect performance or even cause errors.
[04/11/2023-20:33:54] [TRT] [I] [MemUsageChange] TensorRT-managed allocation in engine deserialization: CPU +0, GPU +88, now: CPU 0, GPU 88 (MiB)
[04/11/2023-20:33:54] [TRT] [I] [MemUsageChange] TensorRT-managed allocation in IExecutionContext creation: CPU +0, GPU +133, now: CPU 0, GPU 221 (MiB)
Engine Loaded.
TensorRT inference begins !
0%| | 0/17 [00:00<?, ?it/s][ WARN:[email protected]] global loadsave.cpp:244 cv::findDecoder imread_('.'): can't open/read file: check file path/integrity
0%| | 0/17 [00:00<?, ?it/s]
Traceback (most recent call last):
File "E:\yolo\Yolov7_Segmentation_Tensorrt-main\segment_image.py", line 261, in
origin_img = pred.inference(arg_input)
File "E:\yolo\Yolov7_Segmentation_Tensorrt-main\segment_image.py", line 184, in inference
real_image = img_.copy()
AttributeError: 'NoneType' object has no attribute 'copy'

Process finished with exit code 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant