Comments (3)
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.
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.
It seems that running things in Ubuntu instead of Windows fixes these issues.
from open-solution-mapping-challenge.
Related Issues (20)
- File b'data/meta/metadata.csv' does not exist: b'data/meta/metadata.csv' HOT 1
- AttributeError: 'StdOutWithUpload' object has no attribute 'fileno' HOT 1
- where to get Original Dataset? CrowdAi had been shut down HOT 3
- transformer aren't generate HOT 2
- Why droping small masks on the edge works HOT 1
- Dataset cant' be reachable anymore HOT 4
- Using model weights on own dataset HOT 26
- evaluate:valid data is none?
- Confused about generating target masks HOT 5
- Error when running Evaluate : axis 1 is out of bounds for array of dimension 0 HOT 21
- Use the Mapping-Challenge-weights to predict on my own data HOT 17
- KeyError: 'inference' when applying solution weight to my data HOT 11
- Transfer learning using the available weights HOT 3
- Transfer learning using the available weights
- Pip subprocess error related to pycocotools when running 'source Makefile' HOT 2
- Adjusting 'Confidence' when Predicting on New Data
- The runtime encountered a problem HOT 1
- Segment Mask not visible on custom data
- Model weights for the winning solution is not available!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from open-solution-mapping-challenge.