Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
f218e94
1
Parent(s):
e1ac5dd
add
Browse files
app.py
CHANGED
@@ -118,7 +118,7 @@ class BaseTrainer(object):
|
|
118 |
logger.info(f"Init test dataloader success")
|
119 |
model_module = __import__(f"models.{args.model}", fromlist=["something"])
|
120 |
|
121 |
-
self.model =
|
122 |
|
123 |
if self.rank == 0:
|
124 |
logger.info(self.model)
|
|
|
118 |
logger.info(f"Init test dataloader success")
|
119 |
model_module = __import__(f"models.{args.model}", fromlist=["something"])
|
120 |
|
121 |
+
self.model = getattr(model_module, args.g_name)(args).cuda()
|
122 |
|
123 |
if self.rank == 0:
|
124 |
logger.info(self.model)
|