Comments (5)
Traceback (most recent call last):
File "main.py", line 85, in
parse_cmd(sys.argv[1:])
File "main.py", line 73, in parse_cmd
gan_func(opt_arg['-d'])
File "E:\all_code\aspectLevel\Texygen\models\textGan_MMD\Textgan.py", line 328, in train_real
wi_dict, iw_dict = self.init_real_trainng(data_loc)
File "E:\all_code\aspectLevel\Texygen\models\textGan_MMD\Textgan.py", line 290, in init_real_trainng
self.sequence_length, self.vocab_size = text_precess(data_loc)
File "E:\all_code\aspectLevel\Texygen\utils\text_process.py", line 75, in text_precess
train_tokens = get_tokenlized(train_text_loc)
File "E:\all_code\aspectLevel\Texygen\utils\text_process.py", line 50, in get_tokenlized
for text in raw:
UnicodeDecodeError: 'gbk' codec can't decode byte 0xa6 in position 2: illegal multibyte sequence
from texygen.
please refer to #14
from texygen.
Hello @cyzLoveDream ,Did you solved the first question? I met the same problem. If you did, please tell me.
from texygen.
I also ran into this problem, which seems to be due to tensorflow parsing the command line flags within the leakgan code.
I solved it by modifying main.py to run leakgan by default, so that I wouldn't have to specify the -g leakgan on the command line:
if not '-g' in opt_arg.keys():
#print('unspecified GAN type, use MLE training only...')
#gan = set_gan('mle')
print('unspecified GAN type, use leak GAN training only...')
gan = set_gan('leakgan')
from texygen.
This is really helpful thank you!
from texygen.
Related Issues (20)
- How to prepare the data for text generation task. Thank you very much.
- How to generate data from leakgan : leakgan error
- How to Save Trained Models for reuse? HOT 2
- the BLEU score of LeakGAN in COCO is about 0.84 HOT 3
- 怎样跑自己的真实数据 HOT 2
- In MLE model, sample from multinomial distribution instead of using argmax to generate next_token
- Why the leakgan implementation is different from the paper? HOT 1
- Is there a way to make generation conditional on some input text?
- dataset partition
- How to get text from generated generator.txt file?
- How can I get the BLEU on real data? HOT 1
- Where is the reference about MLE
- potential bug in self-bleu calculations HOT 1
- Question of Generator Loss of MaliGAN
- Bugs in running RankGAN
- How to use Bleu? HOT 1
- 请问你们成功运行该项目的环境具体是多少?我总是出错
- Unique ngram, division by lenght of document
- Why GAN instead of RNN?
- How to save only discriminator model?
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 texygen.