mrhan1993 / Fooocus-API

FastAPI powered API for Fooocus
GNU General Public License v3.0
583 stars 156 forks source link

AttributeError: module 'torch.library' has no attribute 'register_fake' #402

Closed mahmutozerg closed 2 months ago

mahmutozerg commented 2 months ago
{9D137648-751D-4882-888E-9DA028427D1D}
mahmutozerg commented 2 months ago

Probably issue was there is no torch 2.1 with cu121. I will try to upgrade to 2.2 and then close the issue if it works

mahmutozerg commented 2 months ago

Yep that was right issue is caused by line 57 and or 65. You can try to run with--skip-pip arg or completely remove pytorch+cuda installation part, the second part is my suggestion because if you ever forget to add --skip-pip it will ruin everyting. Please refer to https://pytorch.org

{E691F668-51B7-4E0E-8AB1-24734C015322}