fixed bug that was making parser pick up unkown args from the environment making it crash. Eg in colab it was picking up jupyter runtime dir in root location. Now we don't need the dummy variable -f in colab
This commit is contained in:
+572
-573
File diff suppressed because it is too large
Load Diff
@@ -69,7 +69,7 @@ class BaseOptions():
|
||||
def parse(self, save=True):
|
||||
if not self.initialized:
|
||||
self.initialize()
|
||||
self.opt = self.parser.parse_args()
|
||||
self.opt, unknown_arg = self.parser.parse_known_args()
|
||||
self.opt.isTrain = self.isTrain # train or test
|
||||
|
||||
str_ids = self.opt.gpu_ids.split(',')
|
||||
|
||||
Reference in New Issue
Block a user