Skip to content
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

how to model testing? #11

Open
choiseonb1n opened this issue Jun 9, 2023 · 5 comments
Open

how to model testing? #11

choiseonb1n opened this issue Jun 9, 2023 · 5 comments

Comments

@choiseonb1n
Copy link

Using pre-learned data, we learned custom data through train.py and saved two types of .pth files.
How should I proceed with the test?

Total number of parameters: 186007263
2023-06-09 13:35:00.785 | INFO | models.PDGAN:init:82 - ---------- Networks initialized Done-------------
2023-06-09 13:35:00.785 | INFO | models.PDGAN:init:86 - Loading pre-trained network PDGAN! You choose the results of 120 epoch
Traceback (most recent call last):
File "test.py", line 20, in
model = create_model(cfg)
File "/home/epozen/PD-GAN/models/models.py", line 13, in create_model
model = PDGAN(cfg)
File "/home/epozen/PD-GAN/models/PDGAN.py", line 89, in init
self.load_networks(cfg.which_epoch)
File "/home/epozen/PD-GAN/models/base_model.py", line 84, in load_networks
print(getattr(self, "optimizer_" + name))
AttributeError: 'PDGAN' object has no attribute 'optimizer_PDGAN'

The following error occurs when proceeding with the [python test.py] command.

@DouglasQ
Copy link

DouglasQ commented Sep 6, 2023

I have the same problem now. Have you solved it ?

@p6trick
Copy link

p6trick commented Nov 4, 2023

me too

@fittiing
Copy link

Have you solved this problem? Can you share how to test it?

@yooqoo
Copy link

yooqoo commented Apr 15, 2024

Have you solved this problem?

@dabusidexiaoqiang111
Copy link

Have you solved this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants