Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/stage2/transport/integrators.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def __forward_fn(self):

try:
sampler = sampler_dict[self.sampler_type]
except:
except KeyError:
raise NotImplementedError("Smapler type not implemented.")

return sampler
Expand Down
2 changes: 1 addition & 1 deletion src/stage2/transport/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def training_losses(
- x1: datapoint
- model_kwargs: additional arguments for the model
"""
if model_kwargs == None:
if model_kwargs is None:
model_kwargs = {}

t, x0, x1 = self.sample(x1)
Expand Down
4 changes: 2 additions & 2 deletions src/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,11 @@ def guidance_value(key: str, default: float) -> float:
if args.compile:
try:
rae.encode = torch.compile(rae.encode)
except:
except Exception:
print('RAE ENCODE compile meets error, falling back to no compile')
try:
model.forward = torch.compile(model.forward)
except:
except Exception:
print('MODEL FORWARD compile meets error, falling back to no compile')
else:
raise NotImplementedError('ARGS>COMPILE')
Expand Down