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

error when running applications/tools/animeganv2.py #235

Closed
oukohou opened this issue Mar 16, 2021 · 4 comments
Closed

error when running applications/tools/animeganv2.py #235

oukohou opened this issue Mar 16, 2021 · 4 comments

Comments

@oukohou
Copy link

oukohou commented Mar 16, 2021

code is like:
python applications/tools/animeganv2.py --input_image path/to/gakki.png --output_path path/to/animeGAN
errors are:

--------------------------------------
C++ Traceback (most recent call last):
--------------------------------------
0   paddle::imperative::Tracer::TraceOp(std::string const&, paddle::imperative::NameVarBaseMap const&, paddle::imperative::NameVarBaseMap const&, paddle::framework::AttributeMap, std::map<std::string, std::string, std::less<std::string >, std::allocator<std::pair<std::string const, std::string > > > const&)
1   paddle::imperative::Tracer::TraceOp(std::string const&, paddle::imperative::NameVarBaseMap const&, paddle::imperative::NameVarBaseMap const&, paddle::framework::AttributeMap, paddle::platform::Place const&, bool, std::map<std::string, std::string, std::less<std::string >, std::allocator<std::pair<std::string const, std::string > > > const&)
2   paddle::imperative::PreparedOp::Run(paddle::imperative::NameVarBaseMap const&, paddle::imperative::NameVarBaseMap const&, paddle::framework::AttributeMap const&)
3   std::_Function_handler<void (paddle::framework::ExecutionContext const&), paddle::framework::OpKernelRegistrarFunctor<paddle::platform::CPUPlace, false, 0ul, paddle::operators::GemmConvKernel<paddle::platform::CPUDeviceContext, float>, paddle::operators::GemmConvKernel<paddle::platform::CPUDeviceContext, double> >::operator()(char const*, char const*, int) const::{lambda(paddle::framework::ExecutionContext const&)#1}>::_M_invoke(std::_Any_data const&, paddle::framework::ExecutionContext const&)
4   paddle::operators::GemmConvKernel<paddle::platform::CPUDeviceContext, float>::Compute(paddle::framework::ExecutionContext const&) const
5   paddle::operators::math::Im2ColFunctor<(paddle::operators::math::ColFormat)0, paddle::platform::CPUDeviceContext, float>::operator()(paddle::platform::CPUDeviceContext const&, paddle::framework::Tensor const&, std::vector<int, std::allocator<int> > const&, std::vector<int, std::allocator<int> > const&, std::vector<int, std::allocator<int> > const&, paddle::framework::Tensor*, paddle::framework::DataLayout)
6   paddle::framework::SignalHandle(char const*, int)
7   paddle::platform::GetCurrentTraceBackString[abi:cxx11]()

----------------------
Error Message Summary:
----------------------
FatalError: `Segmentation fault` is detected by the operating system.
  [TimeInfo: *** Aborted at 1615879561 (unix time) try "date -d @1615879561" if you are using GNU date ***]
  [SignalInfo: *** SIGSEGV (@0x7f56573e42c0) received by PID 11689 (TID 0x7f60fec05740) from PID 1463698112 ***]

Segmentation fault (core dumped)

my environment:
ubuntu 18.04,python 3.8.5,paddlepaddle-gpu 2.0.0

@wangna11BD
Copy link
Collaborator

I run, no error.
Make sure to update to the latest code.
And can you provide the input image, complete running code and error report? I want to repeat your error.

@oukohou
Copy link
Author

oukohou commented Mar 18, 2021

I run, no error.
Make sure to update to the latest code.
And can you provide the input image, complete running code and error report? I want to repeat your error.

@wangna11BD seems to be the problem of image resolution. A 400x300 image runs smoothly while a 1920x1080 image throws the error above.CPU mode or GPU mode throw the same above error, while my cpu is 64G and GPU 8G only.

@wangna11BD
Copy link
Collaborator

It is out of memory. You can cut the image into four parts or more, input model separately, and then put the output together.

@oukohou
Copy link
Author

oukohou commented Mar 19, 2021

@wangna11BD yeah, thanks for your reply.

@oukohou oukohou closed this as completed Mar 19, 2021
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

2 participants