Fix: making visualisation work again

Summary:
1. Respecting `visdom_show_preds` parameter when it is False.
2. Clipping the images pre-visualisation, which is important for methods like SRN that are not arare of pixel value range.

Reviewed By: bottler

Differential Revision: D37786439

fbshipit-source-id: 8dbb5104290bcc5c2829716b663cae17edc911bd
This commit is contained in:
Roman Shapovalov
2022-07-13 05:29:09 -07:00
committed by Facebook GitHub Bot
parent af55ba01f8
commit 4261e59f51
2 changed files with 10 additions and 9 deletions

View File

@@ -638,7 +638,7 @@ def _seed_all_random_engines(seed: int) -> None:
random.seed(seed)
def _setup_envvars_for_cluster(cfg) -> bool:
def _setup_envvars_for_cluster() -> bool:
"""
Prepares to run on cluster if relevant.
Returns whether FAIR cluster in use.