Update app.py
Browse files
app.py
CHANGED
@@ -18,8 +18,8 @@ from gradio_litmodel3d import LitModel3D
|
|
18 |
# we load the pre-trained model from HF
|
19 |
class LRMGeneratorWrapper:
|
20 |
def __init__(self):
|
21 |
-
self.config = AutoConfig.from_pretrained("
|
22 |
-
self.model = AutoModel.from_pretrained("
|
23 |
self.device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
24 |
self.model.to(self.device)
|
25 |
self.model.eval()
|
|
|
18 |
# we load the pre-trained model from HF
|
19 |
class LRMGeneratorWrapper:
|
20 |
def __init__(self):
|
21 |
+
self.config = AutoConfig.from_pretrained("facebook/vfusion3d", trust_remote_code=True)
|
22 |
+
self.model = AutoModel.from_pretrained("facebook/vfusion3d", trust_remote_code=True)
|
23 |
self.device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
24 |
self.model.to(self.device)
|
25 |
self.model.eval()
|