Oops! (ಥ_ಥ) When I start fooocus to draw, the terminal reports an error: "Worker error: User specified autocast device_type must be 'cuda' or 'cpu'."
Therefore, I think fooocus did not set the device number of cuda properly. However, when the program starts, there is output that the device configuration is correct:
"Device: cuda:0 NVIDIA A40 : native"
Finally, I set the cuda device id: I fixed the cuda device in main.py and the problem was solved.
Oops! (ಥ_ಥ) When I start fooocus to draw, the terminal reports an error: "
Worker error: User specified autocast device_type must be 'cuda' or 'cpu'.
"Therefore, I think fooocus did not set the device number of cuda properly. However, when the program starts, there is output that the device configuration is correct: "
Device: cuda:0 NVIDIA A40 : native
"Finally, I set the cuda device id: I fixed the cuda device in
main.py
and the problem was solved.Is there an easier way? T^T