Classes | Functions | Variables
server Namespace Reference

Classes

class  Inference
 

Functions

def apply_half (t)
 
def caption_request ()
 
def vqa_request ()
 

Variables

 app = Flask(__name__)
 
 caption_infer = Inference("caption", ofa_model_scale)
 
 infer = Inference()
 
 methods
 
 ofa_model_scale = os.environ["OFA_MODEL_SCALE"]
 
dictionary OFA_PARAM
 
 ofa_task = os.environ["OFA_TASK"]
 
string PARAM_DIR = "/var/mount/params"
 
 threaded
 
 vqa_infer = Inference("vqa_gen", ofa_model_scale)
 

Function Documentation

◆ apply_half()

def server.apply_half (   t)

Definition at line 14 of file clip/server.py.

◆ caption_request()

def server.caption_request ( )

Definition at line 51 of file clip/server.py.

◆ vqa_request()

def server.vqa_request ( )

Definition at line 260 of file ofa/server.py.

Variable Documentation

◆ app

server.app = Flask(__name__)

Definition at line 47 of file clip/server.py.

◆ caption_infer

server.caption_infer = Inference("caption", ofa_model_scale)

Definition at line 226 of file ofa/server.py.

◆ infer

server.infer = Inference()

Definition at line 48 of file clip/server.py.

◆ methods

server.methods

Definition at line 50 of file clip/server.py.

◆ ofa_model_scale

server.ofa_model_scale = os.environ["OFA_MODEL_SCALE"]

Definition at line 223 of file ofa/server.py.

◆ OFA_PARAM

dictionary server.OFA_PARAM
Initial value:
1 = {
2  "caption":{
3  "large":"caption_large_best_clean.pt",
4  "huge":"caption_huge_best.pt"
5  },
6  "refcoco":{
7  "large":"refcocog_large_best.pt",
8  "huge":"refcocog_large_best.pt"
9  },
10  "vqa_gen":{
11  "large":"vqa_large_best.pt",
12  "huge":"vqa_large_best.pt"
13  }
14 }

Definition at line 26 of file ofa/server.py.

◆ ofa_task

server.ofa_task = os.environ["OFA_TASK"]

Definition at line 222 of file ofa/server.py.

◆ PARAM_DIR

string server.PARAM_DIR = "/var/mount/params"

Definition at line 24 of file ofa/server.py.

◆ threaded

server.threaded

Definition at line 67 of file clip/server.py.

◆ vqa_infer

server.vqa_infer = Inference("vqa_gen", ofa_model_scale)

Definition at line 227 of file ofa/server.py.



jsk_perception
Author(s): Manabu Saito, Ryohei Ueda
autogenerated on Fri May 16 2025 03:11:18