Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove duplicates files throws an error #5731

Closed
Ultimatum22 opened this issue Apr 15, 2024 · 5 comments
Closed

Remove duplicates files throws an error #5731

Ultimatum22 opened this issue Apr 15, 2024 · 5 comments

Comments

@Ultimatum22
Copy link

Describe the bug
I am running 1.11 in a docker container with a nginx proxy running also 1.11 (as described in the docs). I have enabled EXPERIMENTAL_FEATURES=1 and trying to delete duplicated tasks via web interface.

I am importing x number of images via de local storage option. I have also tried this via the shell hoping the interface added a flavor to the code but it throws the same error.

To Reproduce
Steps to reproduce the behavior:
1.Enable EXPERIMENTAL_FEATURES=1
2. Select multiple images
3. Select Remove Duplicate Tasks
4. See error

Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch response = handler(request, *args, **kwargs) File "/usr/local/lib/python3.10/dist-packages/django/utils/decorators.py", line 43, in _wrapper return bound_method(*args, **kwargs) File "/label-studio/label_studio/./data_manager/api.py", line 379, in post result = perform_action(action_id, project, queryset, request.user, **kwargs) File "/label-studio/label_studio/./data_manager/actions/__init__.py", line 117, in perform_action raise e File "/label-studio/label_studio/./data_manager/actions/__init__.py", line 113, in perform_action result = action['entry_point'](project, queryset, **kwargs) File "/label-studio/label_studio/./data_manager/actions/experimental.py", line 114, in remove_duplicates _class.create( AttributeError: type object 'LocalFilesImportStorage' has no attribute 'create'

Expected behavior
I am hoping it will delete duplicates which have not been annotated yet.

Environment (please complete the following information):

  • Docker
  • Label Studio Version 1.11

Additional context
The reason I am doing this is because the export to json only exports annotated images and not the entire database thus I cannot export it easily to another pc.

@davidpob99
Copy link

davidpob99 commented Apr 19, 2024

I have the same problem (#5738), did you find a workaround?

@Ultimatum22
Copy link
Author

No not yet, I am currently trying to use Redis instead of localstorage and see if that works for my workflow.

@makseq
Copy link
Member

makseq commented Apr 19, 2024

Please check the fix in this PR:
#5758

BTW, you don't need to add EXPERIMENTAL_FEATURES=1, now it's official (since 1.12).

@Ultimatum22
Copy link
Author

I've just used the latest develop docker image and it works. Awesome, thanks for the fast fix. How often are new releases created? It's fine for now, I pinned it to the PR fix which is heartexlabs/label-studio:20240419.151443-develop-ff7105f39 for anybody who wants to use latest develop and this fix.

@makseq
Copy link
Member

makseq commented Apr 19, 2024

Cool! Official releases are about once per month. Develop releases are 3-7 times per week, they just are new commits in the develop branch.

@makseq makseq closed this as completed Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants