Giter VIP home page Giter VIP logo

Comments (3)

zeciro avatar zeciro commented on May 28, 2024

Hi,
I am having the exact same issue.
I am running a smaller data set with 1000 images each for the training and validation sets just to try things out.
Preparing the masks and the metadata works fine.
When I start training, I get the above "No such file or directory" issue. However I checked, the file does exist in that location.

Comments are appreciated. I am gonna try to run the entire data set for comparison.

Cheers

from open-solution-mapping-challenge.

zeciro avatar zeciro commented on May 28, 2024

I think it has to do with the file paths and running things under windows instead of linux.

Here is a similar discussion:
https://stackoverflow.com/questions/60635464/confusing-problem-filenotfounderror-errno-2-no-such-file-or-directory

I attempted to fix this in neptune.yaml by changing data/meta to data\meta but that did not change the result.
In src/utils.py I also changed line 150 and 162 to use \ instead of /

However the outcome is the same even though the file path now seems to be correct.

Traceback (most recent call last):
File "main.py", line 68, in
main()
File "C:\ProgramData\Anaconda3\lib\site-packages\click\core.py", line 829, in call
return self.main(*args, **kwargs)
File "C:\ProgramData\Anaconda3\lib\site-packages\click\core.py", line 782, in main
rv = self.invoke(ctx)
File "C:\ProgramData\Anaconda3\lib\site-packages\click\core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\ProgramData\Anaconda3\lib\site-packages\click\core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\ProgramData\Anaconda3\lib\site-packages\click\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "main.py", line 30, in train
pipeline_manager.train(pipeline_name, dev_mode)
File "D:\machine learning\trial\src\pipeline_manager.py", line 42, in train
train(pipeline_name, dev_mode, self.logger, self.params, self.seed)
File "D:\machine learning\trial\src\pipeline_manager.py", line 136, in train
pipeline.fit_transform(data)
File "D:\machine learning\trial\src\steps\base.py", line 106, in fit_transform
step_inputs[input_step.name] = input_step.fit_transform(data)
File "D:\machine learning\trial\src\steps\base.py", line 106, in fit_transform
step_inputs[input_step.name] = input_step.fit_transform(data)
File "D:\machine learning\trial\src\steps\base.py", line 106, in fit_transform
step_inputs[input_step.name] = input_step.fit_transform(data)
[Previous line repeated 4 more times]
File "D:\machine learning\trial\src\steps\base.py", line 112, in fit_transform
return self._cached_fit_transform(step_inputs)
File "D:\machine learning\trial\src\steps\base.py", line 123, in _cached_fit_transform
step_output_data = self.transformer.fit_transform(**step_inputs)
File "D:\machine learning\trial\src\steps\base.py", line 262, in fit_transform
self.fit(*args, **kwargs)
File "D:\machine learning\trial\src\models.py", line 76, in fit
for batch_id, data in enumerate(batch_gen):
File "C:\ProgramData\Anaconda3\lib\site-packages\torch\utils\data\dataloader.py", line 435, in next
data = self._next_data()
File "C:\ProgramData\Anaconda3\lib\site-packages\torch\utils\data\dataloader.py", line 1085, in _next_data
return self._process_data(data)
File "C:\ProgramData\Anaconda3\lib\site-packages\torch\utils\data\dataloader.py", line 1111, in _process_data
data.reraise()
File "C:\ProgramData\Anaconda3\lib\site-packages\torch_utils.py", line 428, in reraise
raise self.exc_type(msg)
FileNotFoundError: Caught FileNotFoundError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\site-packages\torch\utils\data_utils\worker.py", line 198, in _worker_loop
data = fetcher.fetch(index)
File "C:\ProgramData\Anaconda3\lib\site-packages\torch\utils\data_utils\fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "C:\ProgramData\Anaconda3\lib\site-packages\torch\utils\data_utils\fetch.py", line 44, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "D:\machine learning\trial\src\loaders.py", line 150, in getitem
Di = self.load_joblib(distance_filepath)
File "D:\machine learning\trial\src\loaders.py", line 135, in load_joblib
return joblib.load(filepath)
File "C:\ProgramData\Anaconda3\lib\site-packages\joblib\numpy_pickle.py", line 577, in load
with open(filename, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'data\meta\masks_overlayed_eroded_0_dilated_0\train\masks\000000042954'

Any hints?

from open-solution-mapping-challenge.

zeciro avatar zeciro commented on May 28, 2024

It seems that running things in Ubuntu instead of Windows fixes these issues.

from open-solution-mapping-challenge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.