Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

이미지 한개만 예측할수도있는건가요??? #5

Open
bonseong11 opened this issue May 23, 2024 · 3 comments
Open

이미지 한개만 예측할수도있는건가요??? #5

bonseong11 opened this issue May 23, 2024 · 3 comments

Comments

@bonseong11
Copy link

제 데이터셋으로 우선 학습시킨 pth모델이 생겼는데 test를 햇을땐 hr lr이 다있어야 하더라구요!! 혹시 한개의 이미지나 여러개의 이미지 hr이 없는 이 이미지 같은경우에는 예측이 혹시 가능한가요???

@dslisleedh
Copy link
Owner

dslisleedh commented May 23, 2024

안녕하세요, 이메일 주신 내용 확인했습니다.

말씀주신 방법으로 에측하려면 BasicSR의 SingleImageDataset[Link]를 사용하시거나,

datasets:
  test_1:  # the 1st test dataset
    name: Set5
    type: SingleImageDataset
    dataroot_lq: .../datasets/Set5/LR_bicubic/X2
    filename_tmpl: '{}x2'
    io_backend:
      type: disk

BasicSR의 repository에 제공된 inference 코드[Link]를 수정하셔서 사용하시면 될 것 같습니다.

감사합니다.

@bonseong11
Copy link
Author

정말 감사합니다 !!!!!!!!!!!!!! 성공하였습니다!!

@ajw2023
Copy link

ajw2023 commented Jun 4, 2024

I would also like to test PLKSR on a single image and am having a bit of trouble. @bonseong11 could you elaborate on how you did it? Specifically, how did you implement BasicSR's SingleImageDataset? In one of the .yaml files in PLKSR-main/options/test? If so, which one?

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants