IDEALLab / bezier-gan

Bézier Generative Adversarial Networks
MIT License
37 stars 20 forks source link

Xfoil error #6

Open AbrarNhavakar opened 1 year ago

AbrarNhavakar commented 1 year ago

XFoil error! Unsuccessful: (0.9714696, 0.9724853) (0.0078040236, -0.0025930437) Unsuccessful: (0.97357106, 0.9740685) (0.003151073, -0.0071742767) XFoil error! Unsuccessful: (0.97616976, 0.97654295) (0.00987082, -0.0021508508) Unsuccessful: (0.9594796, 0.96199673) (0.004256246, -0.006246212) Unsuccessful: (0.9689028, 0.969203) (0.008294872, -0.0029278405) Unsuccessful: (0.9679656, 0.9675376) (0.009413366, -0.0013497211) Unsuccessful: (0.9703764, 0.97277313) (0.007443255, -0.003442165) attempt to get argmax of an empty sequence INFO:tensorflow:Restoring parameters from ./beziergan/trained_gan/6_20/0/model XFoil error! Unsuccessful: (0.9712771, 0.97037494) (0.006699496, -0.0042425543) Unsuccessful: (0.95369565, 0.9560117) (0.004948454, -0.0058569284) Unsuccessful: (0.9635969, 0.9645968) (0.00951717, -0.0010819267) Unsuccessful: (0.97505355, 0.97539055) (0.004876955, -0.0062085255) Unsuccessful: Self-intersecting! Unsuccessful: (0.9690558, 0.9709797) (0.0046623223, -0.006192716) Unsuccessful: (0.96675265, 0.96917844) (0.011515258, -0.0028635757) Unsuccessful: (0.9651193, 0.96495134) (0.009980403, -0.0007771426) Unsuccessful: (0.9646381, 0.96502054) (0.009072945, -0.0014202944) attempt to get argmax of an empty sequence INFO:tensorflow:Restoring parameters from ./beziergan/trained_gan/6_20/0/model Unsuccessful: (0.97125864, 0.9707105) (0.0042477846, -0.0073023685) Unsuccessful: (0.9720594, 0.9738494) (0.009613222, -0.0012846547) Unsuccessful: (0.9640498, 0.9633483) (0.0066032093, -0.0037821946) Unsuccessful: (0.9610604, 0.9647632) (0.0046949117, -0.0055225017) XFoil error! Unsuccessful: (0.9722642, 0.97338325) (0.0075062746, -0.0025339406) Unsuccessful: (0.97611773, 0.97489244) (0.0106205195, -0.0018282523) Unsuccessful: (0.9606262, 0.9603638) (0.008149621, -0.002634427) Unsuccessful: (0.96134865, 0.96235096) (0.009689826, -0.0004956231) Unsuccessful: (0.9678055, 0.9675245) (0.009109548, -0.0026531455) attempt to get argmax of an empty sequence

yueop commented 1 year ago

Similar issue occurred to me when running the BezierGAN code by default settings. I think the synthesized airfoils are not well-posed enough to be calculated for Xfoil. What options do I have?

wchen459 commented 1 year ago

It could be the issue of the generated airfoil or the configuration of Xfoil. You could check if the generated airfoils are well-posed by looking at the plots created under the directory beziergan/trained_gan/<latent>_<noise>/<model_id>, where latent, noise, and model_id are latent dimension, noise dimension, and model ID (please see readme for more information). If most of the plotted airfoils do not look normal, you may want to retrain the model. The default hyperparameters work in most cases but the results have some stochasticity due to random initialization and batch sampling. In most cases, retraining will solve this issue. The issue can also be caused by incorrect configuration of Xfoil. The first step to debugging this is to see if Xfoil works well given an airfoil shape from the training data. You can do this by simply running python simulation.py.