You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Total number of training data: 6000
GPU available: True (cuda), used: True
TPU available: False, using: 0 TPU cores
IPU available: False, using: 0 IPUs
HPU available: False, using: 0 HPUs
Traceback (most recent call last):
File "/home/UVM-Net-main/Ultra/train.py", line 75, in
main()
File "/home/UVM-Net-main/Ultra/train.py", line 71, in main
trainer.fit(model=model, train_dataloaders=trainloader)
File "/usr/local/lib/python3.9/dist-packages/lightning/pytorch/trainer/trainer.py", line 538, in fit
model = _maybe_unwrap_optimized(model)
File "/usr/local/lib/python3.9/dist-packages/lightning/pytorch/utilities/compile.py", line 123, in _maybe_unwrap_optimized
raise TypeError(f"model must be a LightningModule, got {type(model).__qualname__}")
TypeError: model must be a LightningModule, got UNet
I only modified the import issue
from uvmb import UVMB->from net.uvmb import UVMB
from unet_part import *->from net.unet_part import *
The text was updated successfully, but these errors were encountered:
run python train.py
Total number of training data: 6000
GPU available: True (cuda), used: True
TPU available: False, using: 0 TPU cores
IPU available: False, using: 0 IPUs
HPU available: False, using: 0 HPUs
Traceback (most recent call last):
File "/home/UVM-Net-main/Ultra/train.py", line 75, in
main()
File "/home/UVM-Net-main/Ultra/train.py", line 71, in main
trainer.fit(model=model, train_dataloaders=trainloader)
File "/usr/local/lib/python3.9/dist-packages/lightning/pytorch/trainer/trainer.py", line 538, in fit
model = _maybe_unwrap_optimized(model)
File "/usr/local/lib/python3.9/dist-packages/lightning/pytorch/utilities/compile.py", line 123, in _maybe_unwrap_optimized
raise TypeError(f"
model
must be aLightningModule
, got{type(model).__qualname__}
")TypeError:
model
must be aLightningModule
, gotUNet
I only modified the import issue
from uvmb import UVMB->from net.uvmb import UVMB
from unet_part import *->from net.unet_part import *
The text was updated successfully, but these errors were encountered: