FTP를 통해 전송한 후 파일이 잘못 정렬되었습니다.

FTP를 통해 전송한 후 파일이 잘못 정렬되었습니다.

Ubuntu 16.04 상자(외부 서버)가 있고 Python 파일이 많이 있습니다. 이 파일을 로컬 컴퓨터에 FTP로 전송하고 Python 파일을 열 때마다 코드가 제대로 정렬되지 않습니다.

전송 중에 정렬이 손상된다고 생각합니다.

이 문제를 어떻게 해결할 수 있나요? 저는 Mac을 사용하고 있으며 cyberduck이러한 파일을 전송하는 데 사용합니다.

코드를 ftp한 후 try 문이 잘못 정렬된 것을 발견한 경우. 이것은 단지 스냅샷일 뿐입니다. 많은 줄이 제대로 정렬되지 않았습니다.

    for pano in test_images:
    import time
    #time.sleep(30)
    print "Reading ",pano
    t_start = dt.datetime.now()
        try:
            orig_img = cv2.imread(pano)[:,:,:3]
            '''
            round_y = orig_img.shape[0]%J["h_stride"]
            r_y = J["h_stride"]-round_y if round_y > J["h_stride"]/2 else -round_y
            round_x = orig_img.shape[1]%J["w_stride"]
            r_x = J["w_stride"]-round_x if round_x > J["w_stride"]/2 else -round_x
            orig_img = imresize(orig_img, ( orig_img.shape[0]+round_y, orig_img.shape[0]+round_x) )
            '''
        except:
            continue

원격 파일:

for pano in test_images:
            import time
            #time.sleep(30)
            print "Reading ",pano
            t_start = dt.datetime.now()
            try:
                orig_img = cv2.imread(pano)[:,:,:3]
                '''
                round_y = orig_img.shape[0]%J["h_stride"]
                r_y = J["h_stride"]-round_y if round_y > J["h_stride"]/2 else -round_y
                round_x = orig_img.shape[1]%J["w_stride"]
                r_x = J["w_stride"]-round_x if round_x > J["w_stride"]/2 else -round_x
                orig_img = imresize(orig_img, ( orig_img.shape[0]+round_y, orig_img.shape[0]+round_x) )
                '''
            except:
                continue

관련 정보