Autotrain Image Classification Server Error 500
During the past weeks, I’ve succesfully autotrained two models based on facebook/convnextv2-tiny-1k-224. It worked well.Today, I wanted to do the same thing again (with some additional folders for training). I fired up the space and ran into my first issue: there was some error and the space wouldn’t boot, so I (foolishly) just deleted it and created a new space (went to the facebook/convnextv2-tiny-1k-224 model page → “Train” dropdown → Finetune this model without code) I created the space with Docker / Autotrain and a T4 small.During the autotrain setup assistant, I selected facebook/convnextv2-tiny-1k-224 for Image Classification, selected the zip folder (this time containing five subfolders instead of three as I did during the last time). I clicked on “Start Training”, confirmed the pop-up, waited for a couple of seconds, then I got a server error 500 message. This was in the logs:INFO:     10.16.2.201:9635 - “POST /ui/create_project HTTP/1.1” 500 Internal Server ErrorERROR:    Exception in ASGI applicationTraceback (most recent call last):File “/app/env/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py”, line 407, in run_asgiresult = await app(  # type: ignore[func-returns-value]File “/app/env/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py”, line 69, incallreturn await self.app(scope, receive, send)File “/app/env/lib/python3.10/site-packages/fastapi/applications.py”, line 1054, incallawait super().call(scope, receive, send)File “/app/env/lib/python3.10/site-packages/starlette/applications.py”, line 123, incallawait self.middleware_stack(scope, receive, send)File “/app/env/lib/python3.10/site-packages/starlette/middleware/errors.py”, line 186, incallraise excFile “/app/env/lib/python3.10/site-packages/starlette/middleware/errors.py”, line 164, incallawait self.app(scope, receive, _send)File “/app/env/lib/python3.10/site-packages/starlette/middleware/sessions.py”, line 85, incallawait self.app(scope, receive, send_wrapper)File “/app/env/lib/python3.10/site-packages/starlette/middleware/exceptions.py”, line 65, incallawait 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_appraise excFile “/app/env/lib/python3.10/site-packages/starlette/_exception_handler.py”, line 53, in wrapped_appawait app(scope, receive, sender)File “/app/env/lib/python3.10/site-packages/starlette/routing.py”, line 756, incallawait self.middleware_stack(scope, receive, send)File “/app/env/lib/python3.10/site-packages/starlette/routing.py”, line 776, in appawait route.handle(scope, receive, send)File “/app/env/lib/python3.10/site-packages/starlette/routing.py”, line 297, in handleawait self.app(scope, receive, send)File “/app/env/lib/python3.10/site-packages/starlette/routing.py”, line 77, in appawait 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_appraise excFile “/app/env/lib/python3.10/site-packages/starlette/_exception_handler.py”, line 53, in wrapped_appawait app(scope, receive, sender)File “/app/env/lib/python3.10/site-packages/starlette/routing.py”, line 72, in appresponse = await func(request)File “/app/env/lib/python3.10/site-packages/fastapi/routing.py”, line 278, in appraw_response = await run_endpoint_function(File “/app/env/lib/python3.10/site-packages/fastapi/routing.py”, line 191, in run_endpoint_functionreturn await dependant.call(**values)File “/app/env/lib/python3.10/site-packages/autotrain/app/ui_routes.py”, line 331, in handle_formraise NotImplementedErrorNotImplementedErrorGoogling this error didn’t help. Autotrain is supposed to be codeless, so I think I should expect either an error message that would help me solve the problem, or there is a bug on HF’s side.Any help is greatly appreciated!
2024-05-17T13:30:32Z
thats weird. do you have screenshot of the ui? or do you know the version showed?
2024-05-17T13:49:00Z
image2761×989 159 KB
2024-05-17T15:15:59Z
thank you for reporting this.issue has now been resolved. you should factory rebuild your autotrain space and make sure its on version 0.7.97 or higher.apologies for the inconvenience.
2024-05-17T19:53:15Z
please let me know if you still face this issue
2024-05-21T08:47:14Z
Thank you for your swift support, the issue is solved!