We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0481ae commit 3205eceCopy full SHA for 3205ece
1 file changed
src/mmirage/core/process/processors/image_gen/config.py
@@ -248,9 +248,12 @@ def is_computable(self, vars: Sequence[BaseVar]) -> bool:
248
)
249
return False
250
251
- if self.output_mode not in set(ImageOutputMode):
+ try:
252
+ self.output_mode = ImageOutputMode(self.output_mode)
253
+ except ValueError:
254
logger.warning(
- f"⚠️ Invalid output_mode for {self.name}: {self.output_mode}. Expected one of {[m.value for m in ImageOutputMode]}"
255
+ f"⚠️ Invalid output_mode for {self.name}: {self.output_mode}. "
256
+ f"Expected one of {[m.value for m in ImageOutputMode]}"
257
258
259
0 commit comments