wangqiang9 / SketchKnitter

About PyTorch implementation of SketchKnitter: Vectorized Sketch Generation with Diffusion Models, ICLR 2023, Spotlight.
MIT License
57 stars 9 forks source link

evaluator #5

Closed dngu7 closed 1 year ago

dngu7 commented 1 year ago

The evaluator needs some instructions on how to use it.

I'm testing the evaluator but the read_activations function does not accept the reference dataset. python evaluations/evaluator.py datasets/airplane.npz datasets/airplane.npz

The above command throws the below error: ValueError: missing arr_0 in npz file

Can you also advise on the right format for samples? Its not very clear from the code.

dngu7 commented 1 year ago

Also. the sample.py does not save any samples anywhere.

sample_all = bin_pen(sample_all, args.pen_break)
print(f"sample all {sample_all} is saved!")

This code seems to be printing the whole vector ?

wangqiang9 commented 1 year ago

Please use the correct method to read and use npz files. If you are not familiar with the relevant methods, please learn the relevant APIs yourself, such as: https://numpy.org/doc/stable/reference/generated/numpy.savez.htmlhttps://numpy.org/doc/stable/reference/generated/numpy.savez_compressed.html

wangqiang9 commented 1 year ago

The evaluator needs some instructions on how to use it.

Here are the ways to use scripts for your reference: https://github.com/XDUWQ/SketchKnitter#evaluation

dngu7 commented 1 year ago

I am following the script from your readme file, however that exact script creates the error I mentioned earlier.

Are you suggesting that I need to load and savez the dataset before calling python evaluations/evaluator.py [/path/to/reference-data]

I assumed from your script that the [/path/to/reference-data] argument would accept the dataset automatically.

Can you please re-open this issue?