You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
While running the OTX API following this doc , in executing below command,
dataset_adapter=get_dataset_adapter(task_type=model_template.task_type,
# set a path to the root folder of the wgisd repositorytrain_data_roots="./wgisd",
val_data_roots="./wgisd",
test_data_roots="./wgisd")
1. It is throwing the below error,
TypeError: get_dataset_adapter() missing 1 required positional argument: 'train_type'
Upon adding a parameter "train_type = None" or "train_type = 'Incremental'" referring this
dataset_adapter=get_dataset_adapter(task_type=model_template.task_type,
# set a path to the root folder of the wgisd repositorytrain_type=None,
train_data_roots="./data/wgisd",
val_data_roots="./data/wgisd",
test_data_roots="./data/wgisd")
2. It is further throwing the below error.
193 if encryption_key is not None:
194 dataset_kwargs["encryption_key"] = encryption_key
196 if self.task_type == TaskType.VISUAL_PROMPTING:
197 if self.data_type in ["coco"]:
198 dataset_kwargs["merge_instance_polygons"] = self.use_mask # type: ignore[attr-defined]
File ~/anaconda3/envs/JupyterSystemEnv/lib/python3.10/enum.py:437, in EnumMeta.__getattr__(cls, name)
435 return cls._member_map_[name]
436 except KeyError:
437 raise AttributeError(name) from None
AttributeError: VISUAL_PROMPTING
Describe the bug
While running the OTX API following this doc , in executing below command,
1. It is throwing the below error,
TypeError: get_dataset_adapter() missing 1 required positional argument: 'train_type'
Upon adding a parameter "train_type = None" or "train_type = 'Incremental'" referring this
2. It is further throwing the below error.
Steps to Reproduce
Environment:
The text was updated successfully, but these errors were encountered: