jqyang22 / HSIC-FM

[TNNLS 2023] Overcoming the Barrier of Incompleteness: A Hyperspectral Image Classification Full Model
16 stars 0 forks source link

local variable 'net' referenced before assignment #1

Closed HuaYanGuan closed 9 months ago

HuaYanGuan commented 1 year ago

File "/content/gdrive/MyDrive/research/main.py", line 186, in net = FullModel( File "/content/gdrive/MyDrive/research/HSIC_FM.py", line 180, in init self.recurrent = net(input_size, args.d, args.depth) UnboundLocalError: local variable 'net' referenced before assignment

jqyang22 commented 1 year ago

File "/content/gdrive/MyDrive/research/main.py", line 186, in net = FullModel( File "/content/gdrive/MyDrive/research/HSIC_FM.py", line 180, in init self.recurrent = net(input_size, args.d, args.depth) UnboundLocalError: local variable 'net' referenced before assignment

Hello, please run: python ./main.py --lstm "--lstm" is used to choose the lstm net for subsequent processing.

HuaYanGuan commented 1 year ago

Thank you very much. It works.

File "/content/gdrive/MyDrive/research/main.py", line 186, in net = FullModel( File "/content/gdrive/MyDrive/research/HSIC_FM.py", line 180, in init self.recurrent = net(input_size, args.d, args.depth) UnboundLocalError: local variable 'net' referenced before assignment

Hello, please run: python ./main.py --lstm "--lstm" is used to choose the lstm net for subsequent processing.

Thank you very much, it works