Open aragorn1025 opened 5 years ago
@Vandermode @aragorn1025 What should I do for testing only one image? Can you provide an example for inference ? Anticipate for your reply.
Hi @MenSanYan, I was also trying to test for one single image. I did the following to get the results.
Can we use this network for commercial purpose for a small project, as a part of an image processing processes.
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
Can i use the code without ubuntu?
Is there any hint for put dataset in the right place for at least a test?