Skip to content

Commit

Permalink
ffe
Browse files Browse the repository at this point in the history
  • Loading branch information
QIN2DIM committed Oct 25, 2023
1 parent 0b3a8d5 commit 94646fc
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 5 deletions.
1 change: 1 addition & 0 deletions automation/annotator.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class Objects:
nested_categories: Dict[str, List[str]]
ashes_of_war: Dict[str, Any]
label_alias: Dict[str, Any]
datalake: dict

@classmethod
def from_modelhub(cls, modelhub: ModelHub):
Expand Down
2 changes: 1 addition & 1 deletion automation/assets_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def merge(self, fd: Path, td: Path):


def run():
sources = "https://github.com/QIN2DIM/hcaptcha-challenger/issues/851"
sources = "https://github.com/QIN2DIM/hcaptcha-challenger/issues/864"
am = AssetsManager.from_sources(sources)
am.execute()

Expand Down
8 changes: 7 additions & 1 deletion automation/auto_labeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,14 @@ def edit_in_the_common_cases():
joined_dirs=["motorized_machine"],
negative_labels=["laptop", "chess", "plant", "natural landscape", "mountain"],
)
nox = dg.auto_labeling(limit=1)

dg = DataGroup(
positive_labels=["off road vehicle"],
joined_dirs=["off_road_vehicle"],
negative_labels=["bicycle", "car"],
)

nox = dg.auto_labeling(limit="all")
if "win32" in sys.platform and nox.output_dir:
os.startfile(nox.output_dir)

Expand Down
2 changes: 1 addition & 1 deletion automation/datasets_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
collected = []
per_times = 60
tmp_dir = Path(__file__).parent.joinpath("tmp_dir")
sitekey = SiteKey.user_easy
sitekey = "f5561ba9-8f1e-40ca-9b5b-a0b3f719ef34"


async def collete_datasets(context: ASyncContext):
Expand Down
5 changes: 3 additions & 2 deletions automation/mini_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,12 @@ def upgrade_objects(aid_):
# "hat": "hat2310",
# "vineyard": "vineyard2309",
# "pair_of_roller_skates": "pair_of_roller_skates2310",
"nested_plant": "nested_plant2311"
# "nested_plant": "nested_plant2311",
"off_road_vehicle": "off_road_vehicle2309"
}
# fmt:on

quick_train()
aid = quick_development()
# upgrade_objects(aid)
upgrade_objects(aid)
print(aid)
1 change: 1 addition & 0 deletions automation/roboflow_resnet.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@
" nested_categories: Dict[str, List[str]]\n",
" ashes_of_war: Dict[str, Any]\n",
" label_alias: Dict[str, Any]\n",
" datalake: dict\n",
"\n",
" @classmethod\n",
" def from_modelhub(cls, modelhub: ModelHub):\n",
Expand Down

0 comments on commit 94646fc

Please sign in to comment.