Comments (2)
After following the advice of the issue #210 the evaluation and prediction are right. But, I tried after that to train again the model of the first issue bye overwriting the previous model as #160 explained. The training is gonna be right except finishing with the same error as previously shown.
But when I ran the evaluation I got this issue :
2020-02-19 14-02-30 mapping-challenge >>> evaluating
2020-02-19 14-02-37 steps >>> step xy_inference adapting inputs
2020-02-19 14-02-37 steps >>> step xy_inference transforming...
2020-02-19 14-02-37 steps >>> step xy_inference adapting inputs
2020-02-19 14-02-37 steps >>> step xy_inference transforming...
2020-02-19 14-02-37 steps >>> step loader adapting inputs
2020-02-19 14-02-37 steps >>> step loader transforming...
2020-02-19 14-02-37 steps >>> step unet unpacking inputs
2020-02-19 14-02-37 steps >>> step unet loading transformer...
Traceback (most recent call last):
File "main.py", line 68, in <module>
main()
File "/home/open-solution-mapping-challenge/mapping/lib/python3.6/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/home/open-solution-mapping-challenge/mapping/lib/python3.6/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/home/open-solution-mapping-challenge/mapping/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/open-solution-mapping-challenge/mapping/lib/python3.6/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/open-solution-mapping-challenge/mapping/lib/python3.6/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "main.py", line 41, in evaluate
pipeline_manager.evaluate(pipeline_name, dev_mode, chunk_size)
File "/home/open-solution-mapping-challenge/src/pipeline_manager.py", line 52, in evaluate
evaluate(pipeline_name, dev_mode, chunk_size, self.logger, self.params, self.seed)
File "/home/open-solution-mapping-challenge/src/pipeline_manager.py", line 152, in evaluate
prediction = generate_prediction(meta_valid, pipeline, logger, CATEGORY_IDS, chunk_size, params.num_threads)
File "/home/open-solution-mapping-challenge/src/pipeline_manager.py", line 190, in generate_prediction
return _generate_prediction(meta_data, pipeline, logger, category_ids, num_threads)
File "/home/open-solution-mapping-challenge/src/pipeline_manager.py", line 203, in _generate_prediction
output = pipeline.transform(data)
File "/home/open-solution-mapping-challenge/src/steps/base.py", line 158, in transform
step_inputs[input_step.name] = input_step.transform(data)
File "/home/open-solution-mapping-challenge/src/steps/base.py", line 158, in transform
step_inputs[input_step.name] = input_step.transform(data)
File "/home/open-solution-mapping-challenge/src/steps/base.py", line 158, in transform
step_inputs[input_step.name] = input_step.transform(data)
[Previous line repeated 4 more times]
File "/home/open-solution-mapping-challenge/src/steps/base.py", line 164, in transform
return self._cached_transform(step_inputs)
File "/home/open-solution-mapping-challenge/src/steps/base.py", line 170, in _cached_transform
self.transformer.load(self.cache_filepath_step_transformer)
File "/home/open-solution-mapping-challenge/src/steps/pytorch/models.py", line 156, in load
self.model.load_state_dict(torch.load(filepath))
File "/home/open-solution-mapping-challenge/mapping/lib/python3.6/site-packages/torch/nn/modules/module.py", line 522, in load_state_dict
.format(name))
KeyError: 'unexpected key "module.module.encoder.conv1.weight" in state_dict'
How can correct this ?
Best,
Chris
from open-solution-mapping-challenge.
Hi @Christophe-pere and apologies for taking this long to answer (was unwatched from this repo for some reason).
The loading issue is some pickling problem connected to running it on multigpu (not 100% sure but likely).
You can fix it by overriding how the model gets loaded in here:
https://github.com/neptune-ai/open-solution-mapping-challenge/blob/master/src/models.py
def fit(self, datagen, validation_datagen=None, meta_valid=None):
self._initialize_model_weights()
self.model = nn.DataParallel(self.model)
I hope this helps!
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
- 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
- FileNotFoundError: [Errno 2] No such file or directory: 'data/meta\\masks_overlayed_eroded_0_dilated_0\\train\\masks\\000000150992 HOT 3
- 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.