Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行报错 #4

Open
lelegogo26 opened this issue Feb 7, 2023 · 2 comments
Open

运行报错 #4

lelegogo26 opened this issue Feb 7, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@lelegogo26
Copy link

lelegogo26 commented Feb 7, 2023

执行 python local_infer.py
Please enter your sentence: (Press Enter twice to start processing)
输入 hello word.
报错
raise PipelineException(
transformers.pipelines.base.PipelineException: No mask_token ([MASK]) found on the input

@NCwork
Copy link
Contributor

NCwork commented Feb 9, 2023

I think this happens because I did not take in account chinese characters when I selected all text.
I will that this in to account in the future

@BurhanUlTayyab BurhanUlTayyab added the enhancement New feature or request label Feb 10, 2023
@pottergxy
Copy link

Hi, thanks for your amazing app.
I have an issue. When I input "hello world" in the cmd(win11), there are some errors:
Traceback (most recent call last):
File "C:\Users\XXX\Downloads\DetectGPT-main\DetectGPT-main\local_infer.py", line 24, in
model(sentence, 100, "v1.1")
File "C:\Users\XXX\Downloads\DetectGPT-main\DetectGPT-main\model.py", line 99, in call
return self.call_1_1(sentence, args[1])
File "C:\Users\XXX\Downloads\DetectGPT-main\DetectGPT-main\model.py", line 264, in call_1_1
mean_score = sum(scores)/len(scores)
ZeroDivisionError: division by zero

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants