Jeffdemongo / DBD_Dataset

0 stars 0 forks source link

starting.txt #1

Open ghost opened 3 years ago

ghost commented 3 years ago

def start(): """ Captures video feed frame by frame, crops out unecessary dino and processes """ startingpoint_obj = open('D:/DBD_ML/starting.txt','r') startingpoint = int(startingpoint_obj.read()) startingpoint_obj.close() sct = mss()

I don't know what 'starting.txt' is.

Jeffdemongo commented 3 years ago

Starting.txt was just a text file with the number of frame where it left of is stored in with no special formatting or anything

Kaktow @.***> schrieb am Mi., 14. Juli 2021, 14:05:

def start(): """ Captures video feed frame by frame, crops out unecessary dino and processes """ startingpoint_obj = open('D:/DBD_ML/starting.txt','r') startingpoint = int(startingpoint_obj.read()) startingpoint_obj.close() sct = mss()

I don't know what 'starting.txt' is.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Jeffdemongo/DBD_Dataset/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKOHTYGIJG7LLSAJAAXG2RTTXV4P5ANCNFSM5ALKFLBA .

Jeffdemongo commented 3 years ago

It was a way for me to capture frames over multiple sessions without having to start over again and without having to change variables in the script manually

Kaktow @.***> schrieb am Mi., 14. Juli 2021, 14:05:

def start(): """ Captures video feed frame by frame, crops out unecessary dino and processes """ startingpoint_obj = open('D:/DBD_ML/starting.txt','r') startingpoint = int(startingpoint_obj.read()) startingpoint_obj.close() sct = mss()

I don't know what 'starting.txt' is.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Jeffdemongo/DBD_Dataset/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKOHTYGIJG7LLSAJAAXG2RTTXV4P5ANCNFSM5ALKFLBA .

ghost commented 3 years ago

Traceback (most recent call last): File "C:\Users\whlsl\Desktop\Download\DBD_Dataset-master\capture_feed.py", line 127, in start() File "C:\Users\whlsl\Desktop\Download\DBD_Dataset-master\capture_feed.py", line 17, in start startingpoint_obj = open('‪C:/Users/whlsl/Desktop/Download/DBD_Dataset-master/starting.txt','r') OSError: [Errno 22] Invalid argument: '\u202aC:/Users/whlsl/Desktop/Download/DBD_Dataset-master/starting.txt'

I can't figure out why this error is happening.

Jeffdemongo commented 3 years ago

It could be because you have to run the script as administrator. I usually started the cmd as admin and then activated my env and ran the script from there. If that doesn't work I will have to take a look at what else could be causing it.

Jeffdemongo commented 3 years ago

A temporary fix would be to just set the starting frame variable manually (to 0 when you start the first recording session)