-
Notifications
You must be signed in to change notification settings - Fork 27
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
about run run-wfdd.sh #3
Comments
According to the error message, you need to download the Foreground Mask (Download link), as described in the 4th section of Dataset Release. After the download is complete, please move the If you prefer not to use the fg_mask, you can simply set the argument |
"Thank you very much for your reply. Through training, I have seen excellent metric results, which is outstanding work. However, when performing individual tests, the results are not what I expected. Could you please share the test code? Or how should I configure it?"? |
Thank you for your recognition. For individual tests, you can change the argument |
Thank you very much. I have saved norm_segmentations in the _evaluate function in glass.py, but it seems that the results are not correct. def _evaluate(self, images, scores, segmentations, labels_gt, masks_gt, name, path='training'):
|
|
I need to save the binary images of the test results. I tried saving segmentations, but it’s not the segmentation result. How should I save the binary images after segmentation? |
After the test is completed, the results of the original image/ground truth/heatmap have been saved in |
I ran your code, the data was downloaded, but the following error occurred:
0%| | 0/640 [00:59<?, ?epoch/s]
Traceback (most recent call last):
File "F:\SICC\GLASS-main\GLASS-main\main.py", line 351, in
main()
File "D:\annaconda\lib\site-packages\click\core.py", line 1157, in call
return self.main(*args, **kwargs)
File "D:\annaconda\lib\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
File "D:\annaconda\lib\site-packages\click\core.py", line 1720, in invoke
return _process_result(rv)
File "D:\annaconda\lib\site-packages\click\core.py", line 1657, in _process_result
value = ctx.invoke(self._result_callback, value, **ctx.params)
File "D:\annaconda\lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "F:\SICC\GLASS-main\GLASS-main\main.py", line 299, in run
flag = GLASS.trainer(dataloaders["training"], dataloaders["testing"], dataset_name)
File "F:\SICC\GLASS-main\GLASS-main\glass.py", line 255, in trainer
for i, data in enumerate(training_data):
File "D:\annaconda\lib\site-packages\torch\utils\data\dataloader.py", line 631, in next
data = self._next_data()
File "D:\annaconda\lib\site-packages\torch\utils\data\dataloader.py", line 1346, in _next_data
return self._process_data(data)
File "D:\annaconda\lib\site-packages\torch\utils\data\dataloader.py", line 1372, in _process_data
data.reraise()
File "D:\annaconda\lib\site-packages\torch_utils.py", line 722, in reraise
raise exception
FileNotFoundError: Caught FileNotFoundError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "D:\annaconda\lib\site-packages\torch\utils\data_utils\worker.py", line 308, in _worker_loop
data = fetcher.fetch(index)
File "D:\annaconda\lib\site-packages\torch\utils\data_utils\fetch.py", line 51, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "D:\annaconda\lib\site-packages\torch\utils\data_utils\fetch.py", line 51, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "F:\SICC\GLASS-main\GLASS-main\datasets\mvtec.py", line 192, in getitem
mask_fg = PIL.Image.open(fgmask_path)
File "D:\annaconda\lib\site-packages\PIL\Image.py", line 3236, in open
fp = builtins.open(filename, "rb")
FileNotFoundError: [Errno 2] No such file or directory: 'F:/SICC/GLASS-main/GLASS-main/datasets/WFDD\fg_mask/grey_cloth/129.png'
The text was updated successfully, but these errors were encountered: