Comments (15)
Problem fixed. Please see my fork.
from deep-text-corrector.
hi @braindead i have problem in training
it show error
batched_corrective_tokens = tf.pack(
AttributeError: 'module' object has no attribute 'pack'
in file
text_corrector_models.py line 91
tensorflow V 1.0.0
from deep-text-corrector.
@braindead I also get this kind of results. Have you solved it?
@essamgoda You should use stack instead of pack.
from deep-text-corrector.
another error show
TypeError: Input 'y' of 'Mul' Op has type float32 that does not match type int32 of argument 'x'.
from deep-text-corrector.
@essamgoda Maybe change labels and inputs, as in in API https://www.tensorflow.org/versions/r1.1/api_docs/python/tf/nn/sampled_softmax_loss
def sampled_loss(labels, inputs): labels = tf.reshape(labels, [-1, 1]) return tf.nn.sampled_softmax_loss(w_t, b, labels, inputs, num_samples, self.target_vocab_size)
another error "Ran out of memory"
File "correct_text.py", line 434, in main
train(data_reader, FLAGS.train_path, FLAGS.val_path, FLAGS.model_path)
File "correct_text.py", line 181, in train
target_weights, bucket_id, False)
File "text_corrector_models.py", line 297, in step
outputs = session.run(output_feed, input_feed)
Command used:
python correct_text.py --train_path "./data/movie_dialog_train.txt" --val_path "./data/movie_dialog_val.txt" --config DefaultMovieDialogConfig --data_reader_type MovieDialogReader --model_path "./movie_dialog_model"
Used data and source code:
https://www.dropbox.com/s/oo7e9vg5hcrnjke/deep-text-corrector-master.rar?dl=0
from deep-text-corrector.
@derofim thanks alot it's worked
your code worked (take a long time)
try to reduce number of layer and size if your resource is limited i use gpu ( Nvidia 940 mx 4 gb)
from deep-text-corrector.
@braindead @xushenkun the same error did you solve it ?
from deep-text-corrector.
@essamgoda hi, how much steps have you trained? when I run 20000 times in half an hour, it showed....
Input: you must have girlfriend
Output: girlfriend girlfriend girlfriend girlfriend girlfriend girlfriend girlfriend girlfriend girlfriend girlfriend
from deep-text-corrector.
@liuyichaosoftware I also run 20000 times
from deep-text-corrector.
Same here.
from deep-text-corrector.
@braindead @essamgoda
I am having the same issues with the model. Did you eventually solve it? Or is it unsolvable?
from deep-text-corrector.
@braindead @essamgoda @HarshdeepGupta
I have the same kind of output here:
na na na na na na na na na na
what what what what what what what what what what
gim gim gim gim gim gim gim gim gim gim gim gim gim gim gim gim gim gim gim gim gim gim gim gim gim gim gim gim gim gim gim gim gim gim gim gim gim gim gim gim
... ... ... ... ... ... ... ... ... ...
up up up up up up up up up up
ya ya ya ya ya ya ya ya ya ya ya ya ya ya ya
I didnt change parameters. I also run 20000 times.
Did anyone eventually manage to get expected results?
from deep-text-corrector.
@qinbill what exactly did you fixed? did you get expected results?
from deep-text-corrector.
how to get expected results, and which parameters should change?
output: what what what what what what what what what
from deep-text-corrector.
Problem fixed. Please see my fork.
Hi, which problem did you fix? problem 'cannot replicate the results'? I tried your fork with my pertained model but still get the same kind of results.
from deep-text-corrector.
Related Issues (20)
- Cannot execute your code due to missing attribute '_linear' HOT 10
- 'zip' object is not subscriptable HOT 1
- Result err
- how to train customize word :
- I am getting movie_dialog_train.txt not found Error HOT 5
- 'zip' object is not subscriptable HOT 4
- 'str' object has no attribute 'decode' HOT 4
- sampled_loss() got an unexpected keyword argument 'logits' HOT 1
- Problem in Run
- 'Variable proj_w does not exist, or was not created with tf.get_variable(). ' on Google Colab
- What version of tensorflow does this code work on? HOT 2
- KeyError: 'UNK' HOT 1
- How many steps does it need to run for to get decent results ? HOT 1
- KeyError: 'UNK'
- module '_pywrap_tensorflow_internal' has no attribute 'TF_ListPhysicalDevices'
- ModuleNotFoundError: No module named 'text_correcter_data_readers' HOT 1
- 'zip' object is not subscriptable
- txt files and model. HOT 8
- file not found error
- Shape (10, ?, 1, 512) must have rank 0
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 deep-text-corrector.