Coder Social home page Coder Social logo

glcic's People

Contributors

shtamura avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

glcic's Issues

Error on model saving.

Dear Shtamura-san,

Sorry to trouble you, again. Here is another issue I just have found.

Epoch 00020: saving model to ./nnmodel/glcic-stage1-20-0.02.h5
Traceback (most recent call last):
File "train.py", line 186, in
validation_steps=5)
File "/home/ubuntu/anaconda3/envs/glcic/lib/python3.6/site-packages/keras/legacy/interfaces.py", line 91, in wrapper
return func(*args, **kwargs)
File "/home/ubuntu/anaconda3/envs/glcic/lib/python3.6/site-packages/keras/engine/training.py", line 2268, in fit_generator
callbacks.on_epoch_end(epoch, epoch_logs)
File "/home/ubuntu/anaconda3/envs/glcic/lib/python3.6/site-packages/keras/callbacks.py", line 77, in on_epoch_end
callback.on_epoch_end(epoch, logs)
File "/home/ubuntu/anaconda3/envs/glcic/lib/python3.6/site-packages/keras/callbacks.py", line 456, in on_epoch_end
self.model.save_weights(filepath, overwrite=True)
File "/home/ubuntu/anaconda3/envs/glcic/lib/python3.6/site-packages/keras/engine/topology.py", line 2621, in save_weights
with h5py.File(filepath, 'w') as f:
File "/home/ubuntu/anaconda3/envs/glcic/lib/python3.6/site-packages/h5py/_hl/files.py", line 312, in init
fid = make_fid(name, mode, userblock_size, fapl, swmr=swmr)
File "/home/ubuntu/anaconda3/envs/glcic/lib/python3.6/site-packages/h5py/_hl/files.py", line 148, in make_fid
fid = h5f.create(name, h5f.ACC_TRUNC, fapl=fapl, fcpl=fcpl)
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "h5py/h5f.pyx", line 98, in h5py.h5f.create
OSError: Unable to create file (unable to open file: name = './nnmodel/glcic-stage1-20-0.02.h5', errno = 2, error message = 'No such file or directory', flags = 13, o_flags = 242)

Should I save it to 'model/glcic-stage1-20-0.02.h5' instead?

Best,
Miao

Get stuck at epoch 1

Dear Shtamura-san,

Thank you for helping me with the first issue. However, after I ran the train stage 1, I can finish Epoch 1 but the program just stop there. Could you help me point it out what happens?

My command is: python train.py --data_dir dataset --stage 1

Here is part of my log info:
2018-06-26 14:23:14,807 INFO #[139780687619840] None
2018-06-26 14:23:14,807 INFO #[139780687619840] 0 input_masked_image:False
2018-06-26 14:23:14,807 INFO #[139780687619840] 1 input_bin_mask:False
2018-06-26 14:23:14,807 INFO #[139780687619840] 2 lambda_1:True
2018-06-26 14:23:14,807 INFO #[139780687619840] 3 lambda_2:True
2018-06-26 14:23:14,807 INFO #[139780687619840] 4 lambda_3:True
2018-06-26 14:23:14,807 INFO #[139780687619840] 5 lambda_4:True
2018-06-26 14:23:14,807 INFO #[139780687619840] 6 generator:True
2018-06-26 14:23:14,807 INFO #[139780687619840] 7 concatenate_1:True
/home/ar-jiangmiao01/anaconda3/envs/glcic/lib/python3.5/site-packages/keras/engine/training.py:2039: UserWarning: Using a generator with
use_multiprocessing=True and multiple workers may duplicate your data. Please consider using the keras.utils.Sequence class.
UserWarning(Using a generator with use_multiprocessing=True)
Epoch 1/100
99/100 [============================>.] - ETA: 0s - loss: 0.0233/home/ar-jiangmiao01/anaconda3/envs/glcic/lib/python3.5/site-packages/keras/engine/training.py:2197: UserWarning: Using a generator with use_multiprocessing=True and multiple workers may duplicate your data. Please consider using thekeras.utils.Sequence class. UserWarning('Using a generator with use_multiprocessing=True`'

Then the program just stop there. Is it due to any other reason?

Best,
Miao

Is train_mrcnn.py in another repository?

Dear Shtamura-san,

Thank you for implementing the paper with Keras. I am trying to implement this, I have a question. In the instruction, there is:
python3 train_mrcnn.py --weights_path ./model/glcic-latest-stage1-xx.h5 --data_path /path/to/dataset --stage 2

I am wondering is trin_mrcnn.py in another repository?

Best,
Miao

ValueError: This model has not yet been built.

pycharm report error
Traceback (most recent call last):
File "train.py", line 122, in
logger.info(model.summary())
File "/Users/cai/anaconda3/envs/glcic/lib/python3.7/site-packages/keras/engine/network.py", line 1320, in summary
'This model has not yet been built. '
ValueError: This model has not yet been built. Build the model first by calling build() or calling fit() with some data. Or specify input_shape or batch_input_shape in the first layer for automatic build.

While run python3 train.py --data_path /path/to/dataset --stage 1

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.