Skip to content

Commit

Permalink
Bump version to v2.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
CVHub520 committed Mar 31, 2024
1 parent a65d739 commit 24d7856
Show file tree
Hide file tree
Showing 13 changed files with 48,091 additions and 48,048 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@

## 🥳 What's New [⏏️](#📄-table-of-contents)

- Mar. 2024:
- 🤗 Release the latest version [2.3.5](https://github.com/CVHub520/X-AnyLabeling/releases/tag/v2.3.5) 🤗
- Feb. 2024:
- 🤗 Release the latest version [2.3.4](https://github.com/CVHub520/X-AnyLabeling/releases/tag/v2.3.4) 🤗
- Release version [2.3.4](https://github.com/CVHub520/X-AnyLabeling/releases/tag/v2.3.4).
- Enable label display feature.
- Release version [2.3.3](https://github.com/CVHub520/X-AnyLabeling/releases/tag/v2.3.3).
- ✨✨✨ Support [YOLO-World](https://github.com/AILab-CVC/YOLO-World) model.
Expand Down
17 changes: 14 additions & 3 deletions README_zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,16 @@
<a href="https://github.com/CVHub520/X-AnyLabeling/stargazers"><img src="https://img.shields.io/github/stars/CVHub520/X-AnyLabeling?color=ccf"></a>
</p>

![](https://user-images.githubusercontent.com/18329471/234640541-a6a65fbc-d7a5-4ec3-9b65-55305b01a7aa.png)
| ![Grounding DINO](https://user-images.githubusercontent.com/72010077/277691916-58be8e7d-133c-4df8-9416-d3243fc7a335.gif) | ![Recognize Anything Model](https://user-images.githubusercontent.com/72010077/277692001-b58832b3-4c21-4c6f-9121-02d9daf2b02b.gif) |
|:---:|:---:|
| *SOTA Zero-Shot Openset Object Detection Model* | *Strong Image Tagging Model* |

| ![Segment Anything Model](https://user-images.githubusercontent.com/72010077/277405591-5ebffdcf-83e8-4999-9594-ee4058627d47.gif) | ![PULC PersonAttribute Model](https://user-images.githubusercontent.com/72010077/282393906-059920cc-0f65-4d2c-9350-941aaa8bbd02.png) |
|:---:|:---:|
| *Powerful Object Segmentation Anything Model* | *Advanced Multi-Label Classification Model* |




<div align=center>
<figure>
Expand Down Expand Up @@ -69,10 +78,12 @@

## 🥳 新功能 [⏏️](#📄-目录)

- 2024年3月:
- 🤗 发布[2.3.5](https://github.com/CVHub520/X-AnyLabeling/releases/tag/v2.3.5)最新版本 🤗
- 2024年2月:
- 🤗 发布[2.3.4](https://github.com/CVHub520/X-AnyLabeling/releases/tag/v2.3.4)最新版本 🤗
- 发布[2.3.4](https://github.com/CVHub520/X-AnyLabeling/releases/tag/v2.3.4)版本。
- 支持标签显示功能。
- 发布[2.3.3](https://github.com/CVHub520/X-AnyLabeling/releases/tag/v2.3.0)版本。
- 发布[2.3.3](https://github.com/CVHub520/X-AnyLabeling/releases/tag/v2.3.3)版本。
- ✨✨✨ 支持[YOLO-World](https://github.com/AILab-CVC/YOLO-World)模型。
- 发布[2.3.2](https://github.com/CVHub520/X-AnyLabeling/releases/tag/v2.3.2)版本。
- 支持[YOLOv9](https://github.com/WongKinYiu/yolov9)模型。
Expand Down
2 changes: 1 addition & 1 deletion anylabeling/app_info.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__appname__ = "X-AnyLabeling"
__appdescription__ = "Advanced Auto Labeling Solution with Added Features"
__version__ = "2.3.4"
__version__ = "2.3.5"
__preferred_device__ = "CPU" # GPU or CPU
95,042 changes: 47,521 additions & 47,521 deletions anylabeling/resources/resources.py

Large diffs are not rendered by default.

518 changes: 264 additions & 254 deletions anylabeling/resources/translations/en_US.ts

Large diffs are not rendered by default.

520 changes: 265 additions & 255 deletions anylabeling/resources/translations/zh_CN.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion anylabeling/views/labeling/label_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(self, filename=None, image_dir=None):
@staticmethod
def load_image_file(filename, default=None):
try:
with open(filename, 'rb') as f:
with open(filename, "rb") as f:
return f.read()
except:
logger.error("Failed opening image file: %s", filename)
Expand Down
20 changes: 13 additions & 7 deletions anylabeling/views/labeling/label_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -1170,7 +1170,7 @@ def __init__(
modify_label,
None,
hbb_to_obb,
obb_to_hbb
obb_to_hbb,
),
)
utils.add_actions(
Expand Down Expand Up @@ -1574,7 +1574,7 @@ def set_dirty(self):
label_file = osp.splitext(self.image_path)[0] + ".json"
if self.output_dir:
label_file_without_path = osp.basename(label_file)
label_file = self.output_dir + '/' + label_file_without_path
label_file = self.output_dir + "/" + label_file_without_path
self.save_labels(label_file)
return
self.dirty = True
Expand Down Expand Up @@ -1759,7 +1759,9 @@ def obb_to_hbb(self):
if data["shapes"][i]["shape_type"] == "rotation":
del data["shapes"][i]["direction"]
data["shapes"][i]["shape_type"] = "rectangle"
points = np.array(data["shapes"][i]["points"]).astype(np.int32)
points = np.array(data["shapes"][i]["points"]).astype(
np.int32
)
x, y, w, h = map(int, list(cv2.boundingRect(points)))
data["shapes"][i]["points"] = [
[x, y],
Expand Down Expand Up @@ -1870,7 +1872,11 @@ def save_crop(self, mode="default"):
data = json.load(f)
shapes = data["shapes"]
for shape in shapes:
if shape["shape_type"] in ["rectangle", "polygon", "rotation"]:
if shape["shape_type"] in [
"rectangle",
"polygon",
"rotation",
]:
points = np.array(shape["points"]).astype(np.int32)
x, y, w, h = cv2.boundingRect(points)
xmin = int(x)
Expand Down Expand Up @@ -3091,7 +3097,7 @@ def load_file(self, filename=None): # noqa: C901
if self.output_dir:
image_dir = osp.dirname(filename)
label_file_without_path = osp.basename(label_file)
label_file = self.output_dir + '/' + label_file_without_path
label_file = self.output_dir + "/" + label_file_without_path
if QtCore.QFile.exists(label_file) and LabelFile.is_label_file(
label_file
):
Expand Down Expand Up @@ -4697,7 +4703,7 @@ def import_dropped_image_files(self, image_files):
label_file = osp.splitext(file)[0] + ".json"
if self.output_dir:
label_file_without_path = osp.basename(label_file)
label_file = self.output_dir + '/' + label_file_without_path
label_file = self.output_dir + "/" + label_file_without_path
item = QtWidgets.QListWidgetItem(file)
item.setFlags(Qt.ItemIsEnabled | Qt.ItemIsSelectable)
if QtCore.QFile.exists(label_file) and LabelFile.is_label_file(
Expand Down Expand Up @@ -4730,7 +4736,7 @@ def import_image_folder(self, dirpath, pattern=None, load=True):
label_file = osp.splitext(filename)[0] + ".json"
if self.output_dir:
label_file_without_path = osp.basename(label_file)
label_file = self.output_dir + '/' + label_file_without_path
label_file = self.output_dir + "/" + label_file_without_path
item = QtWidgets.QListWidgetItem(filename)
item.setFlags(Qt.ItemIsEnabled | Qt.ItemIsSelectable)
if QtCore.QFile.exists(label_file) and LabelFile.is_label_file(
Expand Down
6 changes: 5 additions & 1 deletion anylabeling/views/labeling/widgets/canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,11 @@ def select_shape_point(self, point, multiple_selection_mode):

else:
for shape in reversed(self.shapes):
if self.is_visible(shape) and len(shape.points) > 1 and shape.contains_point(point):
if (
self.is_visible(shape)
and len(shape.points) > 1
and shape.contains_point(point)
):
self.set_hiding()
if shape not in self.selected_shapes:
if multiple_selection_mode:
Expand Down
2 changes: 1 addition & 1 deletion assets/demo.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2.3.4",
"version": "2.3.5",
"flags": {},
"shapes": [
{
Expand Down
2 changes: 1 addition & 1 deletion docs/en/get_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ To ensure access to the latest features and stable performance, it is highly rec

Running in the GUI environment is convenient but may have limitations compared to running from the source code. Consider the pros and cons based on your specific needs and preferences.

Download Link: [Release](https://github.com/CVHub520/X-AnyLabeling/releases/tag/v2.3.4) | [Baidu Disk](https://pan.baidu.com/s/1KcbdxX7UD01_awzKMxScyQ?pwd=gv49)
Download Link: [Release](https://github.com/CVHub520/X-AnyLabeling/releases/tag/v2.3.5) | [Baidu Disk](https://pan.baidu.com/s/1n3vfXZpBUG9s12NZjMxhlw?pwd=odyi)

Note:
- For MacOS:
Expand Down
2 changes: 1 addition & 1 deletion docs/zh_cn/get_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ python anylabeling/app.py

为了在选择运行方式时能够更好地权衡利弊,建议用户根据具体需求和偏好,灵活选择源码运行或GUI环境运行,以达到最佳的使用体验。

下载链接:[Release](https://github.com/CVHub520/X-AnyLabeling/releases/tag/v2.3.4) | [百度网盘](https://pan.baidu.com/s/1KcbdxX7UD01_awzKMxScyQ?pwd=gv49)
下载链接:[Release](https://github.com/CVHub520/X-AnyLabeling/releases/tag/v5) | [百度网盘](https://pan.baidu.com/s/1n3vfXZpBUG9s12NZjMxhlw?pwd=odyi)


### 文件导入
Expand Down
2 changes: 1 addition & 1 deletion scripts/zip_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def get_filename_from_url(url):
"sam_med2d",
"sam_hq",
"efficientvit_sam",
"grounding_sam",
"edeg_sam",
]:
model_config["encoder_model_path"] = get_filename_from_url(
model_config["encoder_model_path"]
Expand Down

0 comments on commit 24d7856

Please sign in to comment.