StoreMaiaJob
class StoreMaiaJob extends FormRequest
Traits
Properties
Volume | $volume | The volume to create the MAIA job for. |
Methods
Get the query for the annotations to convert.
Determine if the user is authorized to make this request.
Get the validation rules that apply to the request.
Configure the validator instance.
Determine if there are existing annotations that can be used as training data.
Determine if there are existing annotations in the volume chosen for knowledge transfer.
Handle a failed authorization attempt.
Details
in
QueriesExistingAnnotations at line 16
protected Builder
getExistingAnnotationsQuery(int $volumeId, array $restrictLabels = [])
Get the query for the annotations to convert.
at line 31
bool
authorize()
Determine if the user is authorized to make this request.
at line 47
array
rules()
Get the validation rules that apply to the request.
at line 83
void
withValidator(Validator $validator)
Configure the validator instance.
at line 129
protected bool
hasNoExistingAnnotations()
Determine if there are existing annotations that can be used as training data.
at line 141
protected bool
hasNoKnowledgeTransferAnnotations()
Determine if there are existing annotations in the volume chosen for knowledge transfer.
at line 155
protected bool
hasSmallImages(Volume $volume)
Determine whether the volume contains images smaller than 512px.
at line 174
protected void
failedAuthorization()
Handle a failed authorization attempt.