code stringlengths 3 6.57k |
|---|
annotation.shape.denormalize_wrt_roi_shape(roi_as_box) |
copy.deepcopy(annotation.shape) |
annotations.append(Annotation(shape=shape, labels=shape_labels) |
append_annotations(self, annotations: Sequence[Annotation]) |
ShapeFactory.shape_as_rectangle(self.roi.shape) |
annotation.shape.normalize_wrt_roi_shape(roi_as_box) |
annotation.get_labels() |
ShapeFactory() |
len(annotations) |
len(validated_annotations) |
self.annotation_scene.append_annotations(validated_annotations) |
item (wrt. ROI) |
set() |
self.roi.get_labels(include_empty) |
label.get_label() |
filtered_labels.add(label.get_label() |
sorted(list(filtered_labels) |
self.get_annotations() |
annotation.get_labels(include_empty) |
scored_label.get_label() |
list(label_set) |
append_labels(self, labels: List[ScoredLabel]) |
len(labels) |
self.annotation_scene.append_annotation(roi_annotation) |
self.roi.get_labels(include_empty=True) |
self.roi.append_label(label) |
roi_annotation.get_labels(include_empty=True) |
roi_annotation.append_label(label) |
__eq__(self, other) |
isinstance(other, DatasetItemEntity) |
__deepcopy__(self, memo) |
copy.copy(self) |
vars(self) |
items() |
setattr(clone, name, Lock() |
setattr(clone, name, copy.deepcopy(value, memo) |
heatmap (ResultMediaEntity) |
Image(file_path='image.jpeg') |
NullAnnotationSceneEntity() |
DatasetItem(media=media, annotation_scene=annotation) |
np.ones((120, 120, 3) |
astype(np.uint8) |
dataset_item.append_metadata_item(result_media) |
TensorEntity(name="representation_vector", numpy=data) |
dataset_item.append_metadata_item(data=tensor, model=model) |
IMetadata. (e.g., FloatMetadata, Tensor) |
self.__metadata.append(MetadataItemEntity(data=data, model=model) |
MainWindow(QMainWindow) |
__init__(self, parent=None) |
super(MainWindow, self) |
__init__(parent) |
self.setCentralWidget(CustomWidget(self) |
self.show() |
CustomWidget(QWidget) |
__init__(self, parent=None) |
super(CustomWidget, self) |
__init__(parent) |
self.setFocusPolicy(Qt.StrongFocus) |
mousePressEvent(self, event) |
print(event) |
keyPressEvent(self, event) |
print(event) |
QApplication(argv) |
MainWindow() |
exit(app.exec_() |
logging.getLogger(__name__) |
InvalidArgumentError(Exception) |
__init__(self, message=None) |
super(InvalidArgumentError, self) |
__init__(message) |
UnknownArgumentError(Exception) |
__init__(self, message=None) |
super(UnknownArgumentError, self) |
__init__(message) |
ProcessExecutionError(Exception) |
_("Unexpected error while running command.") |
_('%(description) |
super(ProcessExecutionError, self) |
__init__(message) |
NoRootWrapSpecified(Exception) |
__init__(self, message=None) |
super(NoRootWrapSpecified, self) |
__init__(message) |
_subprocess_setup() |
signal.signal(signal.SIGPIPE, signal.SIG_DFL) |
execute(*cmd, **kwargs) |
int. (Should be logging.DEBUG or logging.INFO) |
kwargs.pop('process_input', None) |
kwargs.pop('env_variables', None) |
kwargs.pop('check_exit_code', [0]) |
kwargs.pop('delay_on_retry', True) |
kwargs.pop('attempts', 1) |
kwargs.pop('run_as_root', False) |
kwargs.pop('root_helper', '') |
kwargs.pop('shell', False) |
kwargs.pop('loglevel', logging.DEBUG) |
isinstance(check_exit_code, bool) |
isinstance(check_exit_code, int) |
UnknownArgumentError(_('Got unknown keyword args: %r') |
hasattr(os, 'geteuid') |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.