question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What is the exact cause of the crash?

See original GitHub issue
$ python ideepcolor.py 
objc[10305]: Class CVWindow is implemented in both /Users/sansan/anaconda/lib/libopencv_highgui.3.2.0.dylib and /usr/local/opt/opencv/lib/libopencv_highgui.2.4.dylib. One of the two will be used. Which one is undefined.
objc[10305]: Class CVView is implemented in both /Users/sansan/anaconda/lib/libopencv_highgui.3.2.0.dylib and /usr/local/opt/opencv/lib/libopencv_highgui.2.4.dylib. One of the two will be used. Which one is undefined.
objc[10305]: Class CVSlider is implemented in both /Users/sansan/anaconda/lib/libopencv_highgui.3.2.0.dylib and /usr/local/opt/opencv/lib/libopencv_highgui.2.4.dylib. One of the two will be used. Which one is undefined.
objc[10305]: Class CaptureDelegate is implemented in both /Users/sansan/anaconda/lib/libopencv_videoio.3.2.0.dylib and /usr/local/opt/opencv/lib/libopencv_highgui.2.4.dylib. One of the two will be used. Which one is undefined.
[user_study] = False
[dist_caffemodel] = ./models/reference_model/model.caffemodel
[ui_time] = 60
[load_size] = 256
[color_prototxt] = ./models/reference_model/deploy_nodist.prototxt
[color_caffemodel] = ./models/reference_model/model.caffemodel
[dist_prototxt] = ./models/reference_model/deploy_nopred.prototxt
[no_dist] = False
[gpu] = 0
[image_file] = test_imgs/mortar_pestle.jpg
[win_size] = 512
ColorizeImageCaffe instantiated
gpu_id = 0, net_path = ./models/reference_model/deploy_nodist.prototxt, model_path = ./models/reference_model/model.caffemodel
WARNING: Logging before InitGoogleLogging() is written to STDERR
F0521 17:42:31.874128 2128352000 common.cpp:66] Cannot use GPU in CPU-only Caffe: check mode.
*** Check failure stack trace: ***
Abort trap: 6

Why does it crashes? Is it two different OpenCV installations? Or CPU/GPU problem? Can this code run in CPU-only mode?

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
mrlzccommented, May 26, 2017

@SleepProgger Use the parameter --cpu_mode for that.But still crashes,it show the message:

I0526 16:03:39.424075 5657 net.cpp:744] Ignoring source layer loss_class_SoftmaxLossPred_0_split I0526 16:03:39.424103 5657 net.cpp:744] Ignoring source layer loss_log Setting ab cluster centers in layer: pred_ab Setting upsampling layer kernel: pred_313_us test_imgs/mortar_pestle.jpg scale = 2.000000 Has been killed

How can i solve this problem?

1reaction
SleepProggercommented, May 23, 2017

Use the parameter --cpu_mode for that.
That was added 2 days ago so you might need to update. But it will be pretty slow.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Top Causes of Car Accidents: The 25 Leading Causes of ...
1. Distracted Driving. The number one cause of car accidents is not a criminal that drove drunk, sped or ran a red light....
Read more >
What Caused the Stock Market Crash of 1929? - HISTORY
While the precise cause of the stock market crash of 1929 is often debated among economists, several widely accepted theories exist.
Read more >
Chapter:3 Causes of Incidents and Accidents
A CFIT accident occurs when a mechanically sound aircraft collides with the ground, typically because the flight crew loses situational awareness and does...
Read more >
Common Fatal Injuries After a Car Crash | Morelli Law Firm
Common injuries that cause death in car accidents include traumatic brain injuries, internal bleeding, broken ribs, or spinal cord injuries.
Read more >
What are the factors that contribute to road accidents? An ...
In fact, the views of police officers about some accident causes may be more accurate than official reports based on road accident records....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found