import tensorflow as tf

        self.rgb_channels = rgb_channels
        self.on_gpu = on_gpu

    def post_init(self):
        import tensorflow as tf
        from i3d_cores.i3d import InceptionI3d

        import os
        os.environ['CUDA_VISIBLE_DEVICES'] = str(get_first_available_gpu())

        with tf.Graph().as_default():
            self.rgb_images_placeholder = tf.placeholder(dtype=tf.float32, shape=(None,
                                                                             self.num_frame_per_clib,
                                                                             self.frame_size_x,
                                                                             self.frame_size_y,
                                                                             self.rgb_channels))
            is_training = False

            with tf.variable_scope('RGB'):
                self.feature, _ = InceptionI3d(
                    num_classes=self.num_classes,
                    spatial_squeeze=True,
