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

Hard to put dataset in the right place for just a test. #8

Open
aragorn1025 opened this issue Jul 31, 2019 · 5 comments
Open

Hard to put dataset in the right place for just a test. #8

aragorn1025 opened this issue Jul 31, 2019 · 5 comments
Labels
question Further information is requested

Comments

@aragorn1025
Copy link

Is there any hint for put dataset in the right place for at least a test?

@MenSanYan
Copy link

@Vandermode @aragorn1025 What should I do for testing only one image? Can you provide an example for inference ? Anticipate for your reply.

@97k
Copy link
Contributor

97k commented Aug 21, 2019

Hi @MenSanYan, I was also trying to test for one single image.
I did the following to get the results.

  • Created a folder, placed my testing image inside that directory
  • Commented all code related to the creation of dataset and data loader
  • Created my dataset for example, test_ref_dataset = datasets.RealDataset('/home/aditya/project/ERRNet/test_ref/')
  • Created a dataloader for the same
  • test_ref_dataloader = datasets.DataLoader(
    test_ref_dataset, batch_size=8, shuffle=False,
    num_workers=opt.nThreads, pin_memory=True)
  • res = engine.test(test_ref_dataloader, savedir=result_dir)
    After this, I was able to get for a single image in the results directory.

@Vandermode Vandermode added the question Further information is requested label Sep 20, 2019
@MohammadSamaraChowagiken
Copy link

MohammadSamaraChowagiken commented Mar 23, 2021

Can we use this network for commercial purpose for a small project, as a part of an image processing processes.

@innat
Copy link

innat commented Apr 4, 2021

To inference on raw samples. In test_errnet.py, right after line 17, commented rest of the part. And put below code

engine = Engine(opt)
test_ref_dataset = datasets.RealDataset('/content/my_img/') # where you save your image

test_ref_dataloader = datasets.DataLoader(
                    test_ref_dataset, batch_size=8, shuffle=False,
                    num_workers=opt.nThreads, pin_memory=True)

res = engine.test(test_ref_dataloader, savedir="/content/") # where result would be saved 

@WGHao
Copy link

WGHao commented Mar 20, 2022

Can i use the code without ubuntu?

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

No branches or pull requests

7 participants