Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
ztMotaLee authored Jun 3, 2024
1 parent e3f0a95 commit 63d5a41
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 9 deletions.
1 change: 0 additions & 1 deletion configs/dataset/general_inpaint_trainv2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ dataset:
target: dataset.inpaintingv2.DarkEnhanceDataset
params:
# Path to the file list.
# file_list: /mnt/petrelfs/liboang/models/hdr_eccv24/DiffBIR-main/filelists/train.list
captions_file: path/to/your/file
out_size: 512
crop_type: center
Expand Down
3 changes: 1 addition & 2 deletions ldm/models/diffusion/ddpm_mask.py
Original file line number Diff line number Diff line change
Expand Up @@ -566,8 +566,7 @@ def __init__(self,
if cond_stage_config == '__is_unconditional__' and not self.force_null_conditioning:
conditioning_key = None

# ckpt_path = kwargs.pop("ckpt_path", None)
ckpt_path="/mnt/petrelfs/liboang/models/hdr_eccv24/DiffBIR-main/experiment/lightning_logs/inpaintingv2_final/checkpoints/step=50000.ckpt"
ckpt_path = kwargs.pop("ckpt_path", None)
reset_ema = kwargs.pop("reset_ema", False)
reset_num_ema_updates = kwargs.pop("reset_num_ema_updates", False)
ignore_keys = kwargs.pop("ignore_keys", [])
Expand Down
3 changes: 0 additions & 3 deletions model/cldm.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
from ldm.modules.distributions.distributions import DiagonalGaussianDistribution
from utils.common import frozen_module
from .spaced_sampler import SpacedSampler
import sys
sys.path.append("/mnt/petrelfs/liboang/models/hdr_eccv24")
sys.path.append("/mnt/petrelfs/liboang/models/hdr_eccv24/DiffBIR-main")
def denormalize(tensor):
return tensor * 255.0

Expand Down
3 changes: 0 additions & 3 deletions model/cldm_lqcontrol.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
from ldm.modules.distributions.distributions import DiagonalGaussianDistribution
from utils.common import frozen_module
from .spaced_sampler import SpacedSampler
import sys
sys.path.append("/mnt/petrelfs/liboang/models/hdr_eccv24")
sys.path.append("/mnt/petrelfs/liboang/models/hdr_eccv24/DiffBIR-main")
def denormalize(tensor):
return tensor * 255.0

Expand Down

0 comments on commit 63d5a41

Please sign in to comment.