microsoft / anomalydetector

SR-CNN
MIT License
257 stars 70 forks source link

Not able to generate thedata using sample.csv #26

Open nithinb opened 4 years ago

nithinb commented 4 years ago

Earlier when I used to run the following command (python3 srcnn/generate_data.py samples/sample.csv) it used the process the data as desired and the entire code used to work without an issue. But currently I get the following error and I am not sure if this is a bug or something that I messed up

python3 srcnn/generate_data.py samples/sample.csv Traceback (most recent call last): File "srcnn/generate_data.py", line 28, in from srcnn.utils import * ModuleNotFoundError: No module named 'srcnn'

Kindly advice. And thanks in advance 😄

rishikesan-vunet commented 3 years ago

Earlier when I used to run the following command (python3 srcnn/generate_data.py samples/sample.csv) it used the process the data as desired and the entire code used to work without an issue. But currently I get the following error and I am not sure if this is a bug or something that I messed up

python3 srcnn/generate_data.py samples/sample.csv Traceback (most recent call last): File "srcnn/generate_data.py", line 28, in from srcnn.utils import * ModuleNotFoundError: No module named 'srcnn'

Kindly advice. And thanks in advance

I am getting the same error. How to solve this?

seaman1900 commented 2 years ago

you should append this code before from srcnn.utils import * import sys sys.path.append('../')

aquirin-te commented 10 months ago

See here: https://github.com/microsoft/anomalydetector/issues/29

Then, it seems the CSV should be in a subfolder, ie, instead of samples/sample.csv, it should be here : samples/sample/sample.csv

Then it is possible to run: python3 srcnn/generate_data.py anomalydetector.git/samples