Skip to content

Commit

Permalink
add TagsOneOfDistribution
Browse files Browse the repository at this point in the history
  • Loading branch information
grokhi committed Apr 22, 2024
1 parent fe5a777 commit c441340
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dataset-tools==0.0.65
dataset-tools==0.0.66
humanize
ujson
scikit-image==0.21.0
2 changes: 1 addition & 1 deletion src/globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@
# IMAGES_ALL_DCT = None
CHUNK_SIZE: int = 1000
MINIMUM_DTOOLS_VERSION: str = (
"0.0.65" # force stats to fully recalculate (f.e. when added new statistics)
"0.0.66" # force stats to fully recalculate (f.e. when added new statistics)
)
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def main_func(team: TeamInfo, project: ProjectInfo):
dtools.TagsImagesCooccurrence(project_meta),
dtools.TagsObjectsCooccurrence(project_meta),
dtools.ClassToTagCooccurrence(project_meta),
# dtools.OneOfTagsDistribution(project_meta),
dtools.TagsOneOfDistribution(project_meta),
]

heatmaps = dtools.ClassesHeatmaps(project_meta, project_stats)
Expand Down
5 changes: 4 additions & 1 deletion src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,10 @@ def upload_sewed_stats(team_id, curr_projectfs_dir, curr_tf_project_dir):
unit="B",
unit_scale=True,
) as pbar:
g.api.file.upload_bulk(team_id, stats_paths, dst_json_paths, pbar)
try:
g.api.file.upload_bulk(team_id, stats_paths, dst_json_paths, pbar)
except:
pass

sly.logger.info(
f"{len(stats_paths)} updated .json and .png stats succesfully updated and uploaded"
Expand Down

0 comments on commit c441340

Please sign in to comment.