Giter Site home page Giter Site logo

Comments (5)

cyzLoveDream avatar cyzLoveDream commented on July 23, 2024

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.

Yaoming95 avatar Yaoming95 commented on July 23, 2024

please refer to #14

from texygen.

PualTorresZhang avatar PualTorresZhang commented on July 23, 2024

Hello @cyzLoveDream ,Did you solved the first question? I met the same problem. If you did, please tell me.

from texygen.

ck37 avatar ck37 commented on July 23, 2024

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.

PualTorresZhang avatar PualTorresZhang commented on July 23, 2024

This is really helpful thank you!

from texygen.

Related Issues (20)

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.