openai / gpt-2-output-dataset

Dataset of GPT-2 outputs for research in detection, biases, and more
MIT License
1.93k stars 548 forks source link

Issues running the detection training code #11

Closed dadelani closed 4 years ago

dadelani commented 4 years ago

Thank you for releasing the code for training the detector. I want to fine-tune the detector on the amazon reviews you released but I have some issues.

The file "train.py" in "detector" directory requires some python functions in some directories (dataset, download, utils) that are missing. Can you please help?

The following imports gives error:

from .dataset import Corpus, EncodedDataset from .download import download from .utils import summary, distributed

Thank you

jongwook commented 4 years ago

You'll need to launch the script as a module, from the upper directory:

python -m detector.train

Check out README.md for more details.

dadelani commented 4 years ago

I see, thank you very much for your reply.