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

Not able run RingNet in colab. #62

Open
abhinavsp0730 opened this issue Mar 31, 2021 · 1 comment
Open

Not able run RingNet in colab. #62

abhinavsp0730 opened this issue Mar 31, 2021 · 1 comment

Comments

@abhinavsp0730
Copy link

Hi, @soubhiksanyal I'm able to install all the requirements in order to run RingNet but while executing
!python -m demo --img_path ./input_images/000013.jpg --out_folder ./RingNet_output --save_obj_file=True --save_flame_parameters=True --neutralize_expression=True in colab I'm getting below error:

2021-03-31 13:24:50.767600: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:998] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2021-03-31 13:24:50.768631: I tensorflow/compiler/xla/service/service.cc:150] XLA service 0x561fc0f11a20 executing computations on platform CUDA. Devices:
2021-03-31 13:24:50.768682: I tensorflow/compiler/xla/service/service.cc:158]   StreamExecutor device (0): Tesla K80, Compute Capability 3.7
2021-03-31 13:24:50.771425: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 2200000000 Hz
2021-03-31 13:24:50.771652: I tensorflow/compiler/xla/service/service.cc:150] XLA service 0x561fc0f118c0 executing computations on platform Host. Devices:
2021-03-31 13:24:50.771690: I tensorflow/compiler/xla/service/service.cc:158]   StreamExecutor device (0): <undefined>, <undefined>
2021-03-31 13:24:50.771943: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1433] Found device 0 with properties: 
name: Tesla K80 major: 3 minor: 7 memoryClockRate(GHz): 0.8235
pciBusID: 0000:00:04.0
totalMemory: 11.17GiB freeMemory: 11.12GiB
2021-03-31 13:24:50.772031: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1512] Adding visible gpu devices: 0
2021-03-31 13:24:50.773555: I tensorflow/core/common_runtime/gpu/gpu_device.cc:984] Device interconnect StreamExecutor with strength 1 edge matrix:
2021-03-31 13:24:50.773587: I tensorflow/core/common_runtime/gpu/gpu_device.cc:990]      0 
2021-03-31 13:24:50.773614: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1003] 0:   N 
2021-03-31 13:24:50.773947: W tensorflow/core/common_runtime/gpu/gpu_bfc_allocator.cc:42] Overriding allow_growth setting because the TF_FORCE_GPU_ALLOW_GROWTH environment variable is set. Original config value was 0.
2021-03-31 13:24:50.774094: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1115] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 10813 MB memory) -> physical GPU (device: 0, name: Tesla K80, pci bus id: 0000:00:04.0, compute capability: 3.7)
./model/ring_6_68641 couldnt find..
[TerminalIPythonApp] WARNING | GUI event loop or pylab initialization failed

UnknownBackendTraceback (most recent call last)
/usr/local/lib/python2.7/dist-packages/IPython/core/interactiveshell.pyc in enable_matplotlib(self, gui)
   2953         # Now we must activate the gui pylab wants to use, and fix %run to take
   2954         # plot updates into account
-> 2955         self.enable_gui(gui)
   2956         self.magics_manager.registry['ExecutionMagics'].default_runner = \
   2957             pt.mpl_runner(self.safe_execfile)

/usr/local/lib/python2.7/dist-packages/IPython/terminal/interactiveshell.pyc in enable_gui(self, gui)
    512         if gui:
    513             self.active_eventloop, self._inputhook =\
--> 514                 get_inputhook_name_and_func(gui)
    515         else:
    516             self.active_eventloop = self._inputhook = None

/usr/local/lib/python2.7/dist-packages/IPython/terminal/pt_inputhooks/__init__.pyc in get_inputhook_name_and_func(gui)
     36 
     37     if gui not in backends:
---> 38         raise UnknownBackend(gui)
     39 
     40     if gui in aliases:

UnknownBackend: No event loop integration for u'inline'. Supported event loops are: qt, qt4, qt5, gtk, gtk2, gtk3, tk, wx, pyglet, glut, osx
> /content/RingNet/run_RingNet.py(45)__init__()
     44         # Data
---> 45         self.batch_size = config.batch_size
     46         self.img_size = config.img_size
@Fsajjad99
Copy link

Did you download, extract and place the pre trained model from the project site?
https://ringnet.is.tue.mpg.de/

The log says " 2021-03-31 13:24:50.774094: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1115] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 10813 MB memory) -> physical GPU (device: 0, name: Tesla K80, pci bus id: 0000:00:04.0, compute capability: 3.7)
./model/ring_6_68641 couldnt find.."

Try confirming that pretrained model is correctly placed.

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