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

C:\Users\JoeBiden\AppData\Local\Programs\Python\Python37\python.exe: Error while finding module specification for 'detector.server' (ModuleNotFoundError: No module named 'detector') #34

Open ShoelessTom opened 1 year ago

ShoelessTom commented 1 year ago

When running the command "python -m detector.server detector-base.pt" on the detector folder, I get this error C:\Users\JoeBiden\AppData\Local\Programs\Python\Python37\python.exe: Error while finding module specification for 'detector.server' (ModuleNotFoundError: No module named 'detector')

I know the code says to run it on the root of the repo instead of the detector file but I get a error that tells me detector-base.pt dosent exist, well ofc it dosent because its in the detector folder 💀

divdasani commented 1 year ago

Move the model file (detector-base.pt) to the root of the repo, and then run the command from there. The model file is supposed to be downloaded in the root directory.