ports
ApiKey
#
Bases: PydanticBase
API key for authentication.
Source code in focoos/ports.py
620 621 622 623 |
|
ArtifactName
#
Bases: str
, Enum
Model artifact type.
Source code in focoos/ports.py
1177 1178 1179 1180 1181 1182 1183 1184 1185 |
|
DatasetLayout
#
Bases: str
, Enum
Supported dataset formats in Focoos.
Values
- ROBOFLOW_COCO: (Detection,Instance Segmentation)
- ROBOFLOW_SEG: (Semantic Segmentation)
Example:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
|
Source code in focoos/ports.py
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 |
|
DatasetMetadata
dataclass
#
Dataclass for storing dataset metadata.
Source code in focoos/ports.py
896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 |
|
dump_json(path)
#
Dump DatasetMetadata to a json file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path
|
str
|
Path to json file. |
required |
Source code in focoos/ports.py
983 984 985 986 987 988 989 990 |
|
from_dict(metadata)
classmethod
#
Create DatasetMetadata from a dictionary.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
metadata
|
dict
|
Dictionary containing metadata. |
required |
Returns:
Name | Type | Description |
---|---|---|
DatasetMetadata |
Instance of DatasetMetadata. |
Source code in focoos/ports.py
954 955 956 957 958 959 960 961 962 963 964 965 966 |
|
from_json(path)
classmethod
#
Create DatasetMetadata from a json file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path
|
str
|
Path to json file. |
required |
Returns:
Name | Type | Description |
---|---|---|
DatasetMetadata |
Instance of DatasetMetadata. |
Source code in focoos/ports.py
968 969 970 971 972 973 974 975 976 977 978 979 980 981 |
|
DatasetPreview
#
Bases: PydanticBase
Preview information for a Focoos dataset.
This class provides metadata about a dataset in the Focoos platform, including its identification, task type, and layout format.
Attributes:
Name | Type | Description |
---|---|---|
ref |
str
|
Unique reference ID for the dataset. |
name |
str
|
Human-readable name of the dataset. |
task |
FocoosTask
|
The computer vision task this dataset is designed for. |
layout |
DatasetLayout
|
The structural format of the dataset (e.g., ROBOFLOW_COCO, ROBOFLOW_SEG). |
description |
Optional[str]
|
Optional description of the dataset's purpose or contents. |
spec |
Optional[DatasetSpec]
|
Detailed specifications about the dataset's composition and size. |
Source code in focoos/ports.py
212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 |
|
DatasetSpec
#
Bases: PydanticBase
Specification details for a dataset in the Focoos platform.
This class provides information about the dataset's size and composition, including the number of samples in training and validation sets and the total size.
Attributes:
Name | Type | Description |
---|---|---|
train_length |
int
|
Number of samples in the training set. |
valid_length |
int
|
Number of samples in the validation set. |
size_mb |
float
|
Total size of the dataset in megabytes. |
Source code in focoos/ports.py
195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 |
|
DictClass
#
Bases: OrderedDict
Source code in focoos/ports.py
707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 |
|
__post_init__()
#
Check the BasicContainer dataclass.
Only occurs if @dataclass decorator has been used.
Source code in focoos/ports.py
735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 |
|
to_tuple()
#
Convert self to a tuple containing all the attributes/keys that are not None
.
Source code in focoos/ports.py
708 709 710 711 712 713 714 |
|
DynamicAxes
dataclass
#
Dynamic axes for model export.
Source code in focoos/ports.py
1168 1169 1170 1171 1172 1173 1174 |
|
ExportCfg
dataclass
#
Configuration for model export.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
out_dir
|
str
|
Output directory for exported model |
required |
onnx_opset
|
int
|
ONNX opset version to use |
17
|
onnx_dynamic
|
bool
|
Whether to use dynamic axes in ONNX export |
True
|
onnx_simplify
|
bool
|
Whether to simplify ONNX model |
True
|
model_fuse
|
bool
|
Whether to fuse model layers |
True
|
format
|
Literal['onnx', 'torchscript']
|
Export format ("onnx" or "torchscript") |
'onnx'
|
device
|
Optional[str]
|
Device to use for export |
'cuda'
|
Source code in focoos/ports.py
1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 |
|
ExportFormat
#
Bases: str
, Enum
Available export formats for model inference.
Values
- ONNX: ONNX format
- TORCHSCRIPT: TorchScript format
Source code in focoos/ports.py
420 421 422 423 424 425 426 427 428 429 430 |
|
FocoosDet
#
Bases: PydanticBase
Single detection result from a model.
This class represents a single detection or segmentation result from a Focoos model. It contains information about the detected object including its position, class, confidence score, and optional segmentation mask.
Attributes:
Name | Type | Description |
---|---|---|
bbox |
Optional[list[int]]
|
Bounding box coordinates in [x1, y1, x2, y2] format, where (x1, y1) is the top-left corner and (x2, y2) is the bottom-right corner. |
conf |
Optional[float]
|
Confidence score of the detection, ranging from 0 to 1. |
cls_id |
Optional[int]
|
Class ID of the detected object, corresponding to the index in the model's class list. |
label |
Optional[str]
|
Human-readable label of the detected object. |
mask |
Optional[str]
|
Base64-encoded PNG image representing the segmentation mask. Note that the mask is cropped to the bounding box coordinates and does not have the same shape as the input image. |
Note
The mask is only present if the model is an instance segmentation or semantic segmentation model. The mask is a base64 encoded string having origin in the top left corner of bbox and the same width and height of the bbox.
Source code in focoos/ports.py
281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 |
|
FocoosDetections
#
Bases: PydanticBase
Collection of detection results from a model.
This class represents a collection of detection or segmentation results from a Focoos model. It contains a list of individual detections and optional latency information.
Attributes:
Name | Type | Description |
---|---|---|
detections |
list[FocoosDet]
|
List of detection results, where each detection contains information about a detected object including its position, class, confidence score, and optional segmentation mask. |
latency |
Optional[dict]
|
Dictionary containing latency information for the inference process. Typically includes keys like 'inference', 'preprocess', and 'postprocess' with values representing the time taken in seconds for each step. |
Source code in focoos/ports.py
326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 |
|
GPUDevice
#
Bases: PydanticBase
Information about a GPU device.
Source code in focoos/ports.py
495 496 497 498 499 500 501 502 503 |
|
GPUInfo
#
Bases: PydanticBase
Information about a GPU driver.
Source code in focoos/ports.py
506 507 508 509 510 511 512 513 |
|
LatencyMetrics
dataclass
#
Performance metrics for model inference.
This class provides performance metrics for model inference, including frames per second (FPS), engine used, minimum latency, maximum latency, mean latency, standard deviation of latency, input image size, and device type.
Attributes:
Name | Type | Description |
---|---|---|
fps |
int
|
Frames per second (FPS) of the inference process. |
engine |
str
|
The inference engine used (e.g., "onnx", "torchscript"). |
min |
float
|
Minimum latency in milliseconds. |
max |
float
|
Maximum latency in milliseconds. |
mean |
float
|
Mean latency in milliseconds. |
std |
float
|
Standard deviation of latency in milliseconds. |
im_size |
int
|
Input image size. |
device |
str
|
Device type. |
Source code in focoos/ports.py
391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 |
|
Metrics
dataclass
#
Collection of training and inference metrics.
Source code in focoos/ports.py
684 685 686 687 688 689 690 691 692 693 694 |
|
ModelExtension
#
Bases: str
, Enum
Supported model extension.
Values
- ONNX: ONNX format
- TORCHSCRIPT: TorchScript format
- WEIGHTS: Weights format
Source code in focoos/ports.py
466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 |
|
ModelFamily
#
Bases: str
, Enum
Enumerazione delle famiglie di modelli disponibili
Source code in focoos/ports.py
697 698 699 700 701 702 703 |
|
ModelInfo
dataclass
#
Bases: DictClass
Comprehensive metadata for a Focoos model.
This dataclass encapsulates all relevant information required to identify, configure, and evaluate a model within the Focoos platform. It is used for serialization, deserialization, and programmatic access to model properties.
Attributes:
Name | Type | Description |
---|---|---|
name |
str
|
Human-readable name or unique identifier for the model. |
model_family |
ModelFamily
|
The model's architecture family (e.g., RTDETR, M2F). |
classes |
list[str]
|
List of class names that the model can detect or segment. |
im_size |
int
|
Input image size (usually square, e.g., 640). |
task |
Task
|
Computer vision task performed by the model (e.g., detection, segmentation). |
config |
dict
|
Model-specific configuration parameters. |
ref |
Optional[str]
|
Optional unique reference string for the model. |
focoos_model |
Optional[str]
|
Optional Focoos base model identifier. |
status |
Optional[ModelStatus]
|
Current status of the model (e.g., training, ready). |
description |
Optional[str]
|
Optional human-readable description of the model. |
train_args |
Optional[TrainerArgs]
|
Optional training arguments used to train the model. |
weights_uri |
Optional[str]
|
Optional URI or path to the model weights. |
val_dataset |
Optional[str]
|
Optional name or reference of the validation dataset. |
val_metrics |
Optional[dict]
|
Optional dictionary of validation metrics (e.g., mAP, accuracy). |
focoos_version |
Optional[str]
|
Optional Focoos version string. |
latency |
Optional[list[LatencyMetrics]]
|
Optional list of latency measurements for different runtimes. |
updated_at |
Optional[str]
|
Optional ISO timestamp of the last update. |
Source code in focoos/ports.py
1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 |
|
dump_json(path)
#
Serialize ModelInfo to a JSON file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path
|
str
|
Path where the JSON file will be saved. |
required |
Source code in focoos/ports.py
1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 |
|
from_json(data)
classmethod
#
Load ModelInfo from a JSON file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path
|
Optional[str]
|
Path to the JSON file containing model metadata. |
required |
data
|
Optional[dict]
|
Dictionary containing model metadata. |
required |
Returns:
Name | Type | Description |
---|---|---|
ModelInfo |
An instance of ModelInfo populated with data from the file. |
Source code in focoos/ports.py
1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 |
|
pprint()
#
Pretty-print the main model information using the Focoos logger.
Source code in focoos/ports.py
1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 |
|
ModelNotFound
#
Bases: Exception
Exception raised when a requested model is not found.
Source code in focoos/ports.py
676 677 678 679 680 681 |
|
ModelOutput
dataclass
#
Bases: DictClass
Model output base container.
Source code in focoos/ports.py
762 763 764 765 766 |
|
ModelPreview
#
Bases: PydanticBase
Preview information for a Focoos model.
This class provides a lightweight preview of model information in the Focoos platform, containing essential details like reference ID, name, task type, and status.
Attributes:
Name | Type | Description |
---|---|---|
ref |
str
|
Unique reference ID for the model. |
name |
str
|
Human-readable name of the model. |
task |
FocoosTask
|
The computer vision task this model is designed for. |
description |
Optional[str]
|
Optional description of the model's purpose or capabilities. |
status |
ModelStatus
|
Current status of the model (e.g., training, ready, failed). |
focoos_model |
str
|
The base model architecture identifier. |
Source code in focoos/ports.py
172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 |
|
ModelStatus
#
Bases: str
, Enum
Status of a Focoos model during its lifecycle.
Values
- CREATED: Model has been created
- TRAINING_STARTING: Training is about to start
- TRAINING_RUNNING: Training is in progress
- TRAINING_ERROR: Training encountered an error
- TRAINING_COMPLETED: Training finished successfully
- TRAINING_STOPPED: Training was stopped
- DEPLOYED: Model is deployed
- DEPLOY_ERROR: Deployment encountered an error
Example
1 2 3 4 5 6 7 8 9 10 11 |
|
Source code in focoos/ports.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
|
OnnxRuntimeOpts
dataclass
#
ONNX runtime configuration options.
This class provides configuration options for the ONNX runtime used for model inference.
Attributes:
Name | Type | Description |
---|---|---|
fp16 |
Optional[bool]
|
Enable FP16 precision. Default is False. |
cuda |
Optional[bool]
|
Enable CUDA acceleration for GPU inference. Default is False. |
vino |
Optional[bool]
|
Enable OpenVINO acceleration for Intel hardware. Default is False. |
verbose |
Optional[bool]
|
Enable verbose logging during inference. Default is False. |
trt |
Optional[bool]
|
Enable TensorRT acceleration for NVIDIA GPUs. Default is False. |
coreml |
Optional[bool]
|
Enable CoreML acceleration for Apple hardware. Default is False. |
warmup_iter |
int
|
Number of warmup iterations to run before benchmarking. Default is 0. |
Source code in focoos/ports.py
348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 |
|
Quotas
#
Bases: PydanticBase
Usage quotas and limits for a user account.
Attributes:
Name | Type | Description |
---|---|---|
total_inferences |
int
|
Total number of inferences allowed. |
max_inferences |
int
|
Maximum number of inferences allowed. |
used_storage_gb |
float
|
Used storage in gigabytes. |
max_storage_gb |
float
|
Maximum storage in gigabytes. |
active_training_jobs |
list[str]
|
List of active training job IDs. |
max_active_training_jobs |
int
|
Maximum number of active training jobs allowed. |
Source code in focoos/ports.py
626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 |
|
RemoteModelInfo
#
Bases: PydanticBase
Complete metadata for a Focoos model.
This class contains comprehensive information about a model in the Focoos platform, including its identification, configuration, performance metrics, and training details.
Attributes:
Name | Type | Description |
---|---|---|
ref |
str
|
Unique reference ID for the model. |
name |
str
|
Human-readable name of the model. |
description |
Optional[str]
|
Optional description of the model's purpose or capabilities. |
owner_ref |
str
|
Reference ID of the model owner. |
focoos_model |
str
|
The base model architecture used. |
task |
FocoosTask
|
The task type the model is designed for (e.g., DETECTION, SEMSEG). |
created_at |
datetime
|
Timestamp when the model was created. |
updated_at |
datetime
|
Timestamp when the model was last updated. |
status |
ModelStatus
|
Current status of the model (e.g., TRAINING, DEPLOYED). |
metrics |
Optional[dict]
|
Performance metrics of the model (e.g., mAP, accuracy). |
latencies |
Optional[list[dict]]
|
Inference latency measurements across different configurations. |
classes |
Optional[list[str]]
|
List of class names the model can detect or segment. |
im_size |
Optional[int]
|
Input image size the model expects. |
training_info |
Optional[TrainingInfo]
|
Information about the training process. |
location |
Optional[str]
|
Storage location of the model. |
dataset |
Optional[DatasetPreview]
|
Information about the dataset used for training. |
Source code in focoos/ports.py
235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 |
|
RuntimeType
#
Bases: str
, Enum
Available runtime configurations for model inference.
Values
- ONNX_CUDA32: ONNX with CUDA FP32
- ONNX_TRT32: ONNX with TensorRT FP32
- ONNX_TRT16: ONNX with TensorRT FP16
- ONNX_CPU: ONNX on CPU
- ONNX_COREML: ONNX with CoreML
- TORCHSCRIPT_32: TorchScript FP32
Source code in focoos/ports.py
433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 |
|
SystemInfo
#
Bases: PydanticBase
System information including hardware and software details.
Source code in focoos/ports.py
516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 |
|
pprint(level='DEBUG')
#
Pretty print the system info.
Source code in focoos/ports.py
536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 |
|
Task
#
Bases: str
, Enum
Types of computer vision tasks supported by Focoos.
Values
- DETECTION: Object detection
- SEMSEG: Semantic segmentation
- INSTANCE_SEGMENTATION: Instance segmentation
- CLASSIFICATION: Image classification
Source code in focoos/ports.py
116 117 118 119 120 121 122 123 124 125 126 127 128 129 |
|
TorchscriptRuntimeOpts
dataclass
#
TorchScript runtime configuration options.
This class provides configuration options for the TorchScript runtime used for model inference.
Attributes:
Name | Type | Description |
---|---|---|
warmup_iter |
int
|
Number of warmup iterations to run before benchmarking. Default is 0. |
optimize_for_inference |
bool
|
Enable inference optimizations. Default is True. |
set_fusion_strategy |
bool
|
Enable operator fusion. Default is True. |
Source code in focoos/ports.py
374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 |
|
TrainerArgs
dataclass
#
Configuration class for unified model training.
Attributes:
Name | Type | Description |
---|---|---|
run_name |
str
|
Name of the training run |
output_dir |
str
|
Directory to save outputs |
ckpt_dir |
Optional[str]
|
Directory for checkpoints |
init_checkpoint |
Optional[str]
|
Initial checkpoint to load |
resume |
bool
|
Whether to resume from checkpoint |
num_gpus |
int
|
Number of GPUs to use |
device |
str
|
Device to use (cuda/cpu) |
workers |
int
|
Number of data loading workers |
amp_enabled |
bool
|
Whether to use automatic mixed precision |
ddp_broadcast_buffers |
bool
|
Whether to broadcast buffers in DDP |
ddp_find_unused |
bool
|
Whether to find unused parameters in DDP |
checkpointer_period |
int
|
How often to save checkpoints |
checkpointer_max_to_keep |
int
|
Maximum checkpoints to keep |
eval_period |
int
|
How often to evaluate |
log_period |
int
|
How often to log |
vis_period |
int
|
How often to visualize |
samples |
int
|
Number of samples for visualization |
seed |
int
|
Random seed |
early_stop |
bool
|
Whether to use early stopping |
patience |
int
|
Early stopping patience |
ema_enabled |
bool
|
Whether to use EMA |
ema_decay |
float
|
EMA decay rate |
ema_warmup |
int
|
EMA warmup period |
learning_rate |
float
|
Base learning rate |
weight_decay |
float
|
Weight decay |
max_iters |
int
|
Maximum training iterations |
batch_size |
int
|
Batch size |
scheduler |
str
|
Learning rate scheduler type |
scheduler_extra |
Optional[dict]
|
Extra scheduler parameters |
optimizer |
str
|
Optimizer type |
optimizer_extra |
Optional[dict]
|
Extra optimizer parameters |
weight_decay_norm |
float
|
Weight decay for normalization layers |
weight_decay_embed |
float
|
Weight decay for embeddings |
backbone_multiplier |
float
|
Learning rate multiplier for backbone |
decoder_multiplier |
float
|
Learning rate multiplier for decoder |
head_multiplier |
float
|
Learning rate multiplier for head |
freeze_bn |
bool
|
Whether to freeze batch norm |
clip_gradients |
float
|
Gradient clipping value |
size_divisibility |
int
|
Input size divisibility requirement |
gather_metric_period |
int
|
How often to gather metrics |
zero_grad_before_forward |
bool
|
Whether to zero gradients before forward pass |
Source code in focoos/ports.py
799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 |
|
TrainingInfo
dataclass
#
Information about a model's training process.
This class contains details about the training job configuration, status, and timing.
Attributes:
Name | Type | Description |
---|---|---|
algorithm_name |
Optional[str]
|
The name of the training algorithm used. |
instance_type |
Optional[str]
|
The compute instance type used for training. |
volume_size |
Optional[int]
|
The storage volume size in GB allocated for the training job. |
max_runtime_in_seconds |
Optional[int]
|
Maximum allowed runtime for the training job in seconds. |
main_status |
Optional[str]
|
The primary status of the training job (e.g., "InProgress", "Completed"). |
secondary_status |
Optional[str]
|
Additional status information about the training job. |
failure_reason |
Optional[str]
|
Description of why the training job failed, if applicable. |
elapsed_time |
Optional[str]
|
Time elapsed since the start of the training job in seconds. |
status_transitions |
Optional[list[dict]]
|
List of status change events during the training process. |
start_time |
Optional[str]
|
Timestamp when the training job started. |
end_time |
Optional[str]
|
Timestamp when the training job completed or failed. |
artifact_location |
Optional[str]
|
Storage location of the training artifacts and model outputs. |
Source code in focoos/ports.py
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 |
|
User
#
Bases: PydanticBase
User account information.
This class represents a user account in the Focoos platform, containing personal information, API key, and usage quotas.
Attributes:
Name | Type | Description |
---|---|---|
email |
str
|
The user's email address. |
created_at |
datetime
|
When the user account was created. |
updated_at |
datetime
|
When the user account was last updated. |
company |
Optional[str]
|
The user's company name, if provided. |
api_key |
ApiKey
|
The API key associated with the user account. |
quotas |
Quotas
|
Usage quotas and limits for the user account. |
Source code in focoos/ports.py
653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 |
|