Giter VIP home page Giter VIP logo

irwgan's People

Contributors

mid-push avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

irwgan's Issues

testing error

Hello,
I am a deep learning newbie currently testing your model on a dataset as a proposal for an MS project but when I run it using the provided code, I get this:
/usr/local/lib/python3.7/dist-packages/torchvision/transforms/transforms.py:333: UserWarning: Argument interpolation should be of type InterpolationMode instead of int. Please, use InterpolationMode enum.
"Argument interpolation should be of type InterpolationMode instead of int. "
model [IRWGANModel] was created

Information

task: dibcoirwgan

phase: test

gan_type: lsgan

netD: gl

trainA_size: 93

trainB_size: 84

testA_size: 16

testB_size: 16

Weight

lambda_A: 10

lambda_B: 10

lambda_identity: 1

Model Specific

beta_mode: AB

threshold: 0.1

batch_size: 20

lambda_nos_A: 1

lambda_nos_B: 1

-------------- Networks loaded ----------------
[Network gen_a2b] Total number of parameters : 11.379 M
[Network gen_b2a] Total number of parameters : 11.379 M
[Network dis_a] Total number of parameters : 13.969 M
[Network dis_b] Total number of parameters : 13.969 M
[Network beta_net_a] Total number of parameters : 2.757 M
[Network beta_net_b] Total number of parameters : 2.757 M

[*] testing start!
Traceback (most recent call last):
File "main.py", line 117, in
test(model, opt, test_loader_a, test_loader_b)
File "main.py", line 38, in test
dict_a, dict_b = misc.test_fid(test_loader_a, model.gen_a2b, test_loader_b, model.gen_b2a, model.run_dir, opt)
File "/content/drive/MyDrive/Colab Notebooks/IrwGAN/models/misc.py", line 125, in test_fid
metric_dict_AB = torch_fidelity.calculate_metrics(input1=real_b_path, input2=fake_b_path, **eval_args)
File "/usr/local/lib/python3.7/dist-packages/torch_fidelity/metrics.py", line 239, in calculate_metrics
featuresdict_1 = extract_featuresdict_from_input_id_cached(1, feat_extractor, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/torch_fidelity/utils.py", line 372, in extract_featuresdict_from_input_id_cached
featuresdict = fn_recompute()
File "/usr/local/lib/python3.7/dist-packages/torch_fidelity/utils.py", line 360, in fn_recompute
return extract_featuresdict_from_input_id(input_id, feat_extractor, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/torch_fidelity/utils.py", line 342, in extract_featuresdict_from_input_id
input = prepare_input_from_id(input_id, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/torch_fidelity/utils.py", line 275, in prepare_input_from_id
return prepare_input_from_descriptor(input_desc, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/torch_fidelity/utils.py", line 230, in prepare_input_from_descriptor
vassert(len(input) > 0, f'No samples found in {input} with samples_find_deep={samples_find_deep}')
File "/usr/local/lib/python3.7/dist-packages/torch_fidelity/helpers.py", line 9, in vassert
raise ValueError(message)
ValueError: No samples found in [] with samples_find_deep=False

has anyone ever come across this?

Colab implementation

Hi, Thank you for the great work.

Due to the limited computation power, I can't run your code directly. I'm wondering if it is possible that you could have colab implementation of your work?

Thank you:)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.