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

[BUG] Autotrain fails due to missing metadata.jsonl, after removing my metadata.jsonl file. #653

Closed
2 tasks done
rileybolen opened this issue May 22, 2024 · 1 comment
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@rileybolen
Copy link

Prerequisites

  • I have read the documentation.
  • I have checked other issues for similar problems.

Backend

Hugging Face Space/Endpoints

Interface Used

UI

CLI Command

No response

UI Screenshots & Parameters

Screenshot 2024-05-22 at 8 01 39 AM

Error Logs

Removed file: /app/.cache/autotrain/863f2b2b-5c1e-40df-9c6c-bec8a6c71a6d/metadata.jsonl
INFO: 10.16.41.118:54118 - "POST /ui/create_project HTTP/1.1" 500 Internal Server Error
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/app/env/lib/python3.10/site-packages/uvicorn/protocols/http/httptools_impl.py", line 411, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "/app/env/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 69, in call
return await self.app(scope, receive, send)
File "/app/env/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in call
await super().call(scope, receive, send)
File "/app/env/lib/python3.10/site-packages/starlette/applications.py", line 123, in call
await self.middleware_stack(scope, receive, send)
File "/app/env/lib/python3.10/site-packages/starlette/middleware/errors.py", line 186, in call
raise exc
File "/app/env/lib/python3.10/site-packages/starlette/middleware/errors.py", line 164, in call
await self.app(scope, receive, _send)
File "/app/env/lib/python3.10/site-packages/starlette/middleware/sessions.py", line 85, in call
await self.app(scope, receive, send_wrapper)
File "/app/env/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 65, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/app/env/lib/python3.10/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/app/env/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/app/env/lib/python3.10/site-packages/starlette/routing.py", line 756, in call
await self.middleware_stack(scope, receive, send)
File "/app/env/lib/python3.10/site-packages/starlette/routing.py", line 776, in app
await route.handle(scope, receive, send)
File "/app/env/lib/python3.10/site-packages/starlette/routing.py", line 297, in handle
await self.app(scope, receive, send)
File "/app/env/lib/python3.10/site-packages/starlette/routing.py", line 77, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/app/env/lib/python3.10/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/app/env/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/app/env/lib/python3.10/site-packages/starlette/routing.py", line 72, in app
response = await func(request)
File "/app/env/lib/python3.10/site-packages/fastapi/routing.py", line 278, in app
raw_response = await run_endpoint_function(
File "/app/env/lib/python3.10/site-packages/fastapi/routing.py", line 191, in run_endpoint_function
return await dependant.call(**values)
File "/app/env/lib/python3.10/site-packages/autotrain/app/ui_routes.py", line 349, in handle_form
data_path = dset.prepare()
File "/app/env/lib/python3.10/site-packages/autotrain/dataset.py", line 223, in prepare
preprocessor = ObjectDetectionPreprocessor(
File "", line 11, in init
File "/app/env/lib/python3.10/site-packages/autotrain/preprocessor/vision.py", line 184, in post_init
raise ValueError(f"{self.train_data} should contain a metadata.jsonl file.")
ValueError: /app/.cache/autotrain/863f2b2b-5c1e-40df-9c6c-bec8a6c71a6d should contain a metadata.jsonl file.

Additional Information

I am trying to use autotrain to fine tune an image detection model, and the training fails to start. It throws a 500 error, saying that the metadata.jsonl file is missing, but right before this it gives a message saying that it removed my metadata.jsonl file. I have formatted my data acording to these docs, although there seem to be some contradictions in the instructions on this page.

@rileybolen rileybolen added the bug Something isn't working label May 22, 2024
@abhishekkrthakur
Copy link
Member

thanks for reporting this.
fixed in version 0.7.104 and above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants