Code error need help
ricktop123 opened this issue · 5 comments
When I run example.py,
File "/project/Med-PaLM/example.py", line 9, in
model = MedPalm()
File "/project/Med-PaLM/medpalm/model.py", line 121, in init
self.encoder = ViTransformerWrapper(
AttributeError: cannot assign module before Module.init() call
it seems the self.encoder didnot define above
@ricktop123 Hey please excuse me can you provide the full error log for me please.
@ricktop123 Hey please excuse me can you provide the full error log for me please.
Traceback (most recent call last):
File "/project/Med-PaLM/example.py", line 9, in
model = MedPalm()
File "/project/Med-PaLM/medpalm/model.py", line 121, in init
self.encoder = ViTransformerWrapper(
File "/XXX/anaconda3/envs/MedPL/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1294, in setattr
raise AttributeError(
AttributeError: cannot assign module before Module.init() call
I encountered the same error
@ricktop123 @instabaines They are both fixed now, thanks for your patience!