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

Abandon (core dumped) #1755

Closed
thibault390 opened this issue May 6, 2021 · 4 comments
Closed

Abandon (core dumped) #1755

thibault390 opened this issue May 6, 2021 · 4 comments
Labels
question Further information is requested

Comments

@thibault390
Copy link

❔I'm trying to convert my yolo model with "python3 models/export.py --weights ./best_weight_large_12epochs.pt --img-size 640 384 --batch 1" command and results in Abandon (core dumped)

No idea how to correct that?

Additional context

Ubuntu 18.04
python3.8
pytorch: 1.7.1+cpu
torchvision: 0.8.2+cpu

@thibault390 thibault390 added the question Further information is requested label May 6, 2021
@github-actions
Copy link

github-actions bot commented May 6, 2021

👋 Hello @thibault390, thank you for your interest in YOLOv3 🚀! Please visit our ⭐️ Tutorials to get started, where you can find quickstart guides for simple tasks like Custom Data Training all the way to advanced concepts like Hyperparameter Evolution.

If this is a 🐛 Bug Report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you.

If this is a custom training ❓ Question, please provide as much information as possible, including dataset images, training logs, screenshots, and a public link to online W&B logging if available.

For business inquiries or professional support requests please visit https://www.ultralytics.com or email Glenn Jocher at glenn.jocher@ultralytics.com.

Requirements

Python 3.8 or later with all requirements.txt dependencies installed, including torch>=1.7. To install run:

$ pip install -r requirements.txt

Environments

YOLOv3 may be run in any of the following up-to-date verified environments (with all dependencies including CUDA/CUDNN, Python and PyTorch preinstalled):

Status

CI CPU testing

If this badge is green, all YOLOv3 GitHub Actions Continuous Integration (CI) tests are currently passing. CI tests verify correct operation of YOLOv3 training (train.py), testing (test.py), inference (detect.py) and export (export.py) on MacOS, Windows, and Ubuntu every 24 hours and on every commit.

@thibault390
Copy link
Author

My error come from yolo.py and is as follow:

TorchScript: starting export with torch 1.7.1+cpu...
/home/yolov5/models/yolo.py:51: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
if self.grid[i].shape[2:4] != x[i].shape[2:4] or self.onnx_dynamic:
terminate called after throwing an instance of 'c10::Error'
what(): [enforce fail at inline_container.cc:380] . PytorchStreamWriter failed writing file version: file write failed
frame #0: c10::ThrowEnforceNotMet(char const*, int, char const*, std::string const&, void const*) + 0x47 (0x7f2ade3ce6a7 in /home/thibault/.local/lib/python3.7/site-packages/torch/lib/libc10.so)
frame #1: caffe2::serialize::PyTorchStreamWriter::valid(char const*, char const*) + 0xa2 (0x7f2acfa52f72 in /home/thibault/.local/lib/python3.7/site-packages/torch/lib/libtorch_cpu.so)
frame #2: caffe2::serialize::PyTorchStreamWriter::writeRecord(std::string const&, void const*, unsigned long, bool) + 0xbf (0x7f2acfa5391f in /home/thibault/.local/lib/python3.7/site-packages/torch/lib/libtorch_cpu.so)
frame #3: caffe2::serialize::PyTorchStreamWriter::writeEndOfFile() + 0xe1 (0x7f2acfa54441 in /home/thibault/.local/lib/python3.7/site-packages/torch/lib/libtorch_cpu.so)
frame #4: caffe2::serialize::PyTorchStreamWriter::~PyTorchStreamWriter() + 0x115 (0x7f2acfa54c35 in /home/thibault/.local/lib/python3.7/site-packages/torch/lib/libtorch_cpu.so)
frame #5: + 0x3131545 (0x7f2ad0eeb545 in /home/thibault/.local/lib/python3.7/site-packages/torch/lib/libtorch_cpu.so)
frame #6: torch::jit::ExportModule(torch::jit::Module const&, std::string const&, std::unordered_map<std::string, std::string, std::hashstd::string, std::equal_tostd::string, std::allocator<std::pair<std::string const, std::string> > > const&, bool, bool) + 0x374 (0x7f2ad0eea414 in /home/thibault/.local/lib/python3.7/site-packages/torch/lib/libtorch_cpu.so)
frame #7: + 0x6f7628 (0x7f2adf323628 in /home/thibault/.local/lib/python3.7/site-packages/torch/lib/libtorch_python.so)
frame #8: + 0x2952b9 (0x7f2adeec12b9 in /home/thibault/.local/lib/python3.7/site-packages/torch/lib/libtorch_python.so)

frame #24: __libc_start_main + 0xe7 (0x7f2ae4807bf7 in /lib/x86_64-linux-gnu/libc.so.6)

Abandon (core dumped)

@thibault390
Copy link
Author

I solved my problem

@glenn-jocher
Copy link
Member

@thibault390 great to hear that you were able to solve the issue! If you have any other questions or need further assistance, feel free to ask.

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

No branches or pull requests

2 participants