Fire-Detection-UAV-Aerial-Image-Classification-Segmentation-UnmannedAerialVehicle icon indicating copy to clipboard operation
Fire-Detection-UAV-Aerial-Image-Classification-Segmentation-UnmannedAerialVehicle copied to clipboard

I did not successfully compile your code

Open wangk98 opened this issue 3 years ago • 4 comments

Hello, When I run the code of "mode = 'training“, the following error appears. QQ图片20210306171917

Do you know how to solve it?

wangk98 avatar Mar 06 '21 09:03 wangk98

Hello @wangk98, thanks for raising this issue. This case for the plot only works if you train your model with the METRIC parameters: https://github.com/AlirezaShamsoshoara/Fire-Detection-UAV-Aerial-Image-Classification-Segmentation-UnmannedAerialVehicle/blob/473e289f0f9de127161bedd837567df923e68cd4/training.py#L42-L52

However, in the current version, only, accuracy was used as a metric. Hence, if you make these changes, there won't be any issue: In plotdata.py, change line#21 https://github.com/AlirezaShamsoshoara/Fire-Detection-UAV-Aerial-Image-Classification-Segmentation-UnmannedAerialVehicle/blob/473e289f0f9de127161bedd837567df923e68cd4/plotdata.py#L21

to this:

(fig, ax) = plt.subplots(1, 1, figsize=(13, 13))

and comment out lines# 34 - 45 (inclusive).

I will make these changes in a new branch and I will submit them. Let me know if there is still any issues.

Good luck!

AlirezaShamsoshoara avatar Mar 06 '21 16:03 AlirezaShamsoshoara

Sorry to disturb you again. After I changed it according to the above method, the following error was reported: IMG_20210307_210558 Then I change line#21(in plotdata.py) to (fig, ax) = plt.subplots(2, 1, figsize=(13, 13),squezee=False) the following error was reported: IMG_20210307_205937 and I do not know how to solve it

wangk98 avatar Mar 07 '21 13:03 wangk98

Hello, thank you for you Great research. I compile your code I have same error.

I changed code and commet lines.

image

hyojun-rtdata avatar May 24 '21 12:05 hyojun-rtdata

@hyojun-rtdata @wangk98 @AlirezaShamsoshoara Did you solve it ?

cryptedwcoder avatar Jul 20 '22 13:07 cryptedwcoder