-
Notifications
You must be signed in to change notification settings - Fork 33
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
ModuleNotFoundError: No module named 'torchnet' #5
Comments
For class ImageDataset(Dataset), there is no argument 'study_level' in "def init(self, df, transform=None):" |
Hey @Zli1893 , just remove the I've fixed the issue, you can see updated code here: https://github.com/pyaf/DenseNet-MURA-PyTorch/blob/master/pipeline.py |
Let me know if you still face any error. |
@pyaf I fix the above issue, but there is another error. |
I have changed norm.1 into norm1, then I got this error
|
do some debugging, let me know the cause. |
Hey, did you find the bug? |
@pyaf Sorry, I have not found the bug yet. I still got the same error. Did you run it successfully? |
@Zli1893 you may try adding preds = preds.view(-1) after line 50 and after line 101 in train.py |
Hi. I only can download MURA-v1.1 and I have an error when training
|
@John1231983 Try checking out the path of your dataset. try giving absolute path instead of relative one. That may fix the issue. |
Hi. Because i am using mura 1.1 so some files are missing comparison with mura 1.0. I guess problem is that |
look into utils.py file, modify the functions accordingly. |
There are 4 hidden files in MURA 1.1 for patient07840, which are counted towards the expected number of file in the folder, but do not follow the expected pattern (and are not valid). The easiest fix is to delete these files:
|
@Zli1893 Hey could you debug this? |
File "main.py", line 16, in
dataloaders = get_dataloaders(study_data, batch_size=1)
File "/home/zli/PycharmProjects/DenseNet-MURA-PyTorch/pipeline.py", line 79, in get_dataloaders
image_datasets = {x: ImageDataset(data[x], transform=data_transforms[x], study_level=study_level) for x in data_cat}
File "/home/zli/PycharmProjects/DenseNet-MURA-PyTorch/pipeline.py", line 79, in
image_datasets = {x: ImageDataset(data[x], transform=data_transforms[x], study_level=study_level) for x in data_cat}
TypeError: init() got an unexpected keyword argument 'study_level'
When I run python main.py, I got the above error. Do you know how to fix it?
The text was updated successfully, but these errors were encountered: