code: def inference_word_box(self, net, gpu, word_image):
      if net.training:
          net.eval()
  
      with torch.no_grad():
          word_img_torch = torch.from_numpy(
              imgproc.normalizeMeanVariance(
                  word_image,
                  mean=(0.485, 0.456, 0.406),
                  variance=(0.229, 0.224, 0.225),
              )
          )
          word_img_torch = word_img_torch.permute(2, 0, 1).unsqueeze(0)
          word_img_torch = word_img_torch.type(torch.FloatTensor).cuda(
              gpu
          )
          with torch.cuda.amp.autocast():
              word_img_scores, _ = net(word_img_torch)
      return word_img_scores
  
file_path: EasyOCR/trainer/craft/data/pseudo_label/make_charbox.py
imports: import os
  import random
  import math
  import numpy
  import cv2
  import torch
  from data import imgproc
  from data.pseudo_label.watershed import exec_watershed_by_version
label_desc: Use image node_id 3 for calling the PseudoCharBoxBuilder obj's underlying member method code with example usage: obj.inference_word_box(net, gpu, word_image) and returns: word_img_scores