SonyResearch / SemSim

Implementation of the paper: "Privacy Assessment on Reconstructed Images: Are Existing Evaluation Metrics Faithful to Human Perception?” (NeurIPS 2023)
Apache License 2.0
5 stars 0 forks source link

[BUG] Cannot run 1st code due to missing elements from inversefed #1

Closed nidham-sony closed 9 months ago

nidham-sony commented 9 months ago

@sxzrt I could not run

python benchmark/step1_train_classifier.py --data=cifar100 --arch=ResNet20-4 --epochs=200 --aug_list='' --mode=crop

Due to this error:

(semsim) chgazagn@deatcs001fc106:~/sony/projects/SemSim$ python benchmark/step1_train_classifier.py --data=cifar100 --arch=ResNet20-4 --epochs=200 --aug_list='' --mode=crop
Traceback (most recent call last):
  File "benchmark/step1_train_classifier.py", line 11, in <module>
    import inversefed
  File "./inversefed/__init__.py", line 3, in <module>
    from inversefed import nn
ImportError: cannot import name 'nn' from partially initialized module 'inversefed' (most likely due to a circular import) (./inversefed/__init__.py)

Can you please add the missing elements from inversefed?